-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c81ad72
commit fdec231
Showing
45 changed files
with
6,574 additions
and
6,191 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,38 @@ | ||
/* See Copyright Notice in ../LICENSE.txt */ | ||
|
||
|
||
#ifndef terra_h | ||
#define terra_h | ||
|
||
#if __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "lauxlib.h" | ||
#include "lua.h" | ||
#include "lualib.h" | ||
#include "lauxlib.h" | ||
|
||
int terra_init(lua_State * L); | ||
int terra_init(lua_State *L); | ||
|
||
typedef struct { /* default values are 0 */ | ||
typedef struct { /* default values are 0 */ | ||
int verbose; /*-v, print more debugging info (can be 1 for some, 2 for more) */ | ||
int debug; /*-g, turn on debugging symbols and base pointers */ | ||
int usemcjit; | ||
char* cmd_line_chunk; | ||
char *cmd_line_chunk; | ||
} terra_Options; | ||
int terra_initwithoptions(lua_State * L, terra_Options * options); | ||
int terra_initwithoptions(lua_State *L, terra_Options *options); | ||
|
||
int terra_load(lua_State *L,lua_Reader reader, void *data, const char *chunkname); | ||
int terra_loadfile(lua_State * L, const char * file); | ||
int terra_loadbuffer(lua_State * L, const char *buf, size_t size, const char *name); | ||
int terra_load(lua_State *L, lua_Reader reader, void *data, const char *chunkname); | ||
int terra_loadfile(lua_State *L, const char *file); | ||
int terra_loadbuffer(lua_State *L, const char *buf, size_t size, const char *name); | ||
int terra_loadstring(lua_State *L, const char *s); | ||
void terra_llvmshutdown(); | ||
|
||
#define terra_dofile(L, fn) \ | ||
(terra_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0)) | ||
#define terra_dofile(L, fn) (terra_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0)) | ||
|
||
#define terra_dostring(L, s) \ | ||
(terra_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0)) | ||
#define terra_dostring(L, s) (terra_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0)) | ||
|
||
#if __cplusplus | ||
} /*extern C*/ | ||
#endif | ||
|
||
#endif |
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
Oops, something went wrong.