lovr/src/util.h

17 lines
523 B
C
Raw Normal View History

2016-07-07 07:04:24 +00:00
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
2016-09-30 06:18:51 +00:00
#include "vendor/vec/vec.h"
#ifndef UTIL_TYPES
#define UTIL_TYPES
typedef vec_t(unsigned int) vec_uint_t;
#endif
2016-07-07 07:04:24 +00:00
void error(const char* format, ...);
2016-08-17 02:11:53 +00:00
int fileExists(char* filename);
2016-07-07 07:04:24 +00:00
char* loadFile(char* filename);
void luaRegisterModule(lua_State* L, const char* name, const luaL_Reg* module);
2016-08-08 20:23:40 +00:00
void luaRegisterType(lua_State* L, const char* name, const luaL_Reg* functions, lua_CFunction gc);
2016-08-01 00:21:04 +00:00
int luaPreloadModule(lua_State* L, const char* key, lua_CFunction f);