Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| cloudahk [2024-02-03 21:57] – Add Converter geek | cloudahk [2024-02-08 02:01] (current) – Add compiler section geek | ||
|---|---|---|---|
| Line 48: | Line 48: | ||
| return | return | ||
| </ | </ | ||
| + | |||
| + | ===== Compiler ===== | ||
| + | |||
| + | Compile C code to an AHK-compatible loader function. | ||
| + | |||
| + | < | ||
| + | #include < | ||
| + | |||
| + | MCL_EXPORT(add, | ||
| + | int add(int a, int b) { | ||
| + | return a + b; | ||
| + | } | ||
| + | |||
| + | MCL_EXPORT(sub, | ||
| + | int sub(int a, int b) { | ||
| + | return a - b; | ||
| + | } | ||
| + | |||
| + | MCL_EXPORT(mul, | ||
| + | int mul(int a, int b) { | ||
| + | return a * b; | ||
| + | } | ||
| + | </ | ||
| + | |||