update swig on windows
This commit is contained in:
22
winx64/bin/swigwin-4.0.0/Examples/lua/embed/example.c
Normal file
22
winx64/bin/swigwin-4.0.0/Examples/lua/embed/example.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/* File : example.c */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* A global variable */
|
||||
double Foo = 3.0;
|
||||
|
||||
/* Compute the greatest common divisor of positive integers */
|
||||
int gcd(int x, int y) {
|
||||
int g;
|
||||
g = y;
|
||||
while (x > 0) {
|
||||
g = x;
|
||||
x = y % x;
|
||||
y = g;
|
||||
}
|
||||
return g;
|
||||
}
|
||||
|
||||
void greeting() {
|
||||
printf("Hello from the C function 'greeting'\n");
|
||||
}
|
||||
Reference in New Issue
Block a user