-
-
Notifications
You must be signed in to change notification settings - Fork 1
8. Extensions
AsynchronousAI edited this page Sep 2, 2025
·
1 revision
Extensions can be used to provide more functions, usually found in standard C libraries.
In your program, attach bindings:
#include <math.h> /* provides much more functions like sin */
#include <stdlib.h> /* provides printf, which is in the default runtime */
int main(){
printf("%.2f", sin(10));
}Now when compiling use:
reasm main.s -o main.luau -Imathand math functions will automatically be attached to the outputted file!
-
math(based onmath.h)