rm string.h from api.h;

This commit is contained in:
bjorn 2021-02-08 20:29:57 -07:00
parent 78ddcf7d6e
commit 907cf35dda
2 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,7 @@
#include "core/util.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
typedef void voidFn(void);
typedef void destructorFn(void*);

View File

@ -1,7 +1,6 @@
#include <lua.h>
#include <lauxlib.h>
#include <stdint.h>
#include <string.h>
#pragma once
@ -125,9 +124,9 @@ typedef struct {
#endif
#define luax_registertype(L, T) _luax_registertype(L, #T, lovr ## T, lovr ## T ## Destroy)
#define luax_totype(L, i, T) (T*) _luax_totype(L, i, hash64(#T, strlen(#T)))
#define luax_checktype(L, i, T) (T*) _luax_checktype(L, i, hash64(#T, strlen(#T)), #T)
#define luax_pushtype(L, T, o) _luax_pushtype(L, #T, hash64(#T, strlen(#T)), o)
#define luax_totype(L, i, T) (T*) _luax_totype(L, i, hash64(#T, sizeof(#T) - 1))
#define luax_checktype(L, i, T) (T*) _luax_checktype(L, i, hash64(#T, sizeof(#T) - 1), #T)
#define luax_pushtype(L, T, o) _luax_pushtype(L, #T, hash64(#T, sizeof(#T) - 1), o)
#define luax_checkenum(L, i, T, x) _luax_checkenum(L, i, lovr ## T, x, #T)
#define luax_pushenum(L, T, x) lua_pushlstring(L, (lovr ## T)[x].string, (lovr ## T)[x].length)
#define luax_checkfloat(L, i) (float) luaL_checknumber(L, i)