Skip to content

Commit

Permalink
Trivial change to catch format.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Oct 11, 2019
1 parent a2f3d58 commit 7009c36
Show file tree
Hide file tree
Showing 44 changed files with 6,540 additions and 6,162 deletions.
23 changes: 10 additions & 13 deletions release/include/terra/terra.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* See Copyright Notice in ../LICENSE.txt */


#ifndef terra_h
#define terra_h

Expand All @@ -12,30 +11,28 @@ extern "C" {
#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
Loading

0 comments on commit 7009c36

Please sign in to comment.