Adding "Math" lib into Wren.
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@
|
||||
// Defaults to on.
|
||||
#ifndef WREN_COMPUTED_GOTO
|
||||
#ifdef _MSC_VER
|
||||
// No computed gotos in Visual Studio.
|
||||
// No computed gotos in Visual Studio.
|
||||
#define WREN_COMPUTED_GOTO 0
|
||||
#else
|
||||
#define WREN_COMPUTED_GOTO 1
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
#if WREN_USE_LIB_IO
|
||||
#include "wren_io.h"
|
||||
#endif
|
||||
#if WREN_USE_LIB_MATH
|
||||
#include "wren_math.h"
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@@ -72,6 +75,9 @@ WrenVM* wrenNewVM(WrenConfiguration* configuration)
|
||||
#if WREN_USE_LIB_IO
|
||||
wrenLoadIOLibrary(vm);
|
||||
#endif
|
||||
#if WREN_USE_LIB_IO
|
||||
wrenLoadMathLibrary(vm);
|
||||
#endif
|
||||
|
||||
return vm;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user