Fixed up makefile for linux and added fallthrough comment

This commit is contained in:
Bruce Hill 2020-04-21 00:22:02 -07:00
parent 915eb75910
commit 4c63db7360
2 changed files with 6 additions and 2 deletions

View File

@ -9,8 +9,11 @@ CC= gcc
CFLAGS= $(INCS) $(WARN) -O2 $G
WARN= -std=c11 -pedantic -Wall -Wextra
INCS= -I$(LUA_INC)
#MAKESO= $(CC) -shared
ifeq ($(shell uname -s),Darwin)
MAKESO= $(CC) -bundle -undefined dynamic_lookup
else
MAKESO= $(CC) -shared
endif
MYNAME= immutable
MYLIB= l$(MYNAME)

View File

@ -116,6 +116,7 @@ static inline int _create_instance(lua_State *L, int from_table)
item_hash = (1000003 * type) ^ (lua_Integer)lua_topointer(L, -1);
break;
}
// fallthrough
case LUA_TTABLE:
case LUA_TFUNCTION:
case LUA_TUSERDATA: