Created
October 18, 2013 09:09
-
-
Save jerstlouis/7038791 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
struct __ecereClosure1DataStruct | |
{ | |
int * x; | |
}; | |
static int __ecereClosure1(struct __ecereClosure1DataStruct * __ecereClosure1Data, int y) | |
{ | |
return (*__ecereClosure1Data->x) + y; | |
} | |
class MyApp : Application | |
{ | |
void Main() | |
{ | |
int x = 10; | |
// PrintLn( ((int y) => x+y) (1337) ); | |
{ | |
__ecereClosure1DataStruct __ecereClosure1Data = { &x }; | |
PrintLn(__ecereClosure1(&__ecereClosure1Data, 1337)); | |
} | |
system("pause"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment