mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-30 22:00:16 +00:00
first commit: working damage replacement example
This commit is contained in:
commit
27229fdca4
223 changed files with 66088 additions and 0 deletions
175
Makefile
Normal file
175
Makefile
Normal file
|
@ -0,0 +1,175 @@
|
|||
#---------------------------------------------------------------------------------
|
||||
.SUFFIXES:
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(strip $(DEVKITPRO)),)
|
||||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro")
|
||||
endif
|
||||
|
||||
TOPDIR ?= $(CURDIR)
|
||||
include $(DEVKITPRO)/libnx/switch_rules
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# TARGET is the name of the output
|
||||
# BUILD is the directory where object files & intermediate files will be placed
|
||||
# SOURCES is a list of directories containing source code
|
||||
# DATA is a list of directories containing data files
|
||||
# INCLUDES is a list of directories containing header files
|
||||
# EXEFS_SRC is the optional input directory containing data copied into exefs, if anything this normally should only contain "main.npdm".
|
||||
#
|
||||
# NO_ICON: if set to anything, do not use icon.
|
||||
# NO_NACP: if set to anything, no .nacp file is generated.
|
||||
# APP_TITLE is the name of the app stored in the .nacp file (Optional)
|
||||
# APP_AUTHOR is the author of the app stored in the .nacp file (Optional)
|
||||
# APP_VERSION is the version of the app stored in the .nacp file (Optional)
|
||||
# APP_TITLEID is the titleID of the app stored in the .nacp file (Optional)
|
||||
# ICON is the filename of the icon (.jpg), relative to the project folder.
|
||||
# If not set, it attempts to use one of the following (in this order):
|
||||
# - <Project name>.jpg
|
||||
# - icon.jpg
|
||||
# - <libnx folder>/default_icon.jpg
|
||||
#---------------------------------------------------------------------------------
|
||||
TARGET := saltysd_plugin_example
|
||||
BUILD := build
|
||||
SOURCES := source source/lua
|
||||
DATA := data
|
||||
INCLUDES := include
|
||||
EXEFS_SRC := exefs_src
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# options for code generation
|
||||
#---------------------------------------------------------------------------------
|
||||
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -fno-plt -export-dynamic -s
|
||||
|
||||
CFLAGS := -Wall -O2 \
|
||||
-ffast-math \
|
||||
$(ARCH) $(DEFINES)
|
||||
|
||||
CFLAGS += $(INCLUDE) -DSWITCH
|
||||
|
||||
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
|
||||
|
||||
ASFLAGS := -g $(ARCH)
|
||||
LDFLAGS = -specs=$(TOPDIR)/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
|
||||
|
||||
LIBS := -lnx -lm
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# list of directories containing libraries, this must be the top level containing
|
||||
# include and lib
|
||||
#---------------------------------------------------------------------------------
|
||||
LIBDIRS := $(PORTLIBS) $(LIBNX)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# no real need to edit anything past this point unless you need to add additional
|
||||
# rules for different file extensions
|
||||
#---------------------------------------------------------------------------------
|
||||
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
export OUTPUT := $(CURDIR)/$(TARGET)
|
||||
export TOPDIR := $(CURDIR)
|
||||
|
||||
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
|
||||
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
|
||||
|
||||
export DEPSDIR := $(CURDIR)/$(BUILD)
|
||||
|
||||
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
||||
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# use CXX for linking C++ projects, CC for standard C
|
||||
#---------------------------------------------------------------------------------
|
||||
ifeq ($(strip $(CPPFILES)),)
|
||||
#---------------------------------------------------------------------------------
|
||||
export LD := $(CC)
|
||||
#---------------------------------------------------------------------------------
|
||||
else
|
||||
#---------------------------------------------------------------------------------
|
||||
export LD := $(CXX)
|
||||
#---------------------------------------------------------------------------------
|
||||
endif
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
export OFILES := $(addsuffix .o,$(BINFILES)) \
|
||||
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
||||
|
||||
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||
-I$(CURDIR)/$(BUILD)
|
||||
|
||||
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||
|
||||
export BUILD_EXEFS_SRC := $(TOPDIR)/$(EXEFS_SRC)
|
||||
|
||||
ifeq ($(strip $(ICON)),)
|
||||
icons := $(wildcard *.jpg)
|
||||
ifneq (,$(findstring $(TARGET).jpg,$(icons)))
|
||||
export APP_ICON := $(TOPDIR)/$(TARGET).jpg
|
||||
else
|
||||
ifneq (,$(findstring icon.jpg,$(icons)))
|
||||
export APP_ICON := $(TOPDIR)/icon.jpg
|
||||
endif
|
||||
endif
|
||||
else
|
||||
export APP_ICON := $(TOPDIR)/$(ICON)
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(NO_ICON)),)
|
||||
export NROFLAGS += --icon=$(APP_ICON)
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(NO_NACP)),)
|
||||
export NROFLAGS += --nacp=$(CURDIR)/$(TARGET).nacp
|
||||
endif
|
||||
|
||||
ifneq ($(APP_TITLEID),)
|
||||
export NACPFLAGS += --titleid=$(APP_TITLEID)
|
||||
endif
|
||||
|
||||
.PHONY: $(BUILD) clean all
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
all: $(BUILD)
|
||||
|
||||
$(BUILD):
|
||||
@[ -d $@ ] || mkdir -p $@
|
||||
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
@echo clean ...
|
||||
@rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).nsp $(TARGET).nacp $(TARGET).elf
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
else
|
||||
.PHONY: all
|
||||
|
||||
DEPENDS := $(OFILES:.o=.d)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# main targets
|
||||
#---------------------------------------------------------------------------------
|
||||
all : $(OUTPUT).elf
|
||||
|
||||
$(OUTPUT).elf : $(OFILES)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# you need a rule like this for each extension you use as binary data
|
||||
#---------------------------------------------------------------------------------
|
||||
%.bin.o : %.bin
|
||||
%.elf.o : %.elf
|
||||
#---------------------------------------------------------------------------------
|
||||
@echo $(notdir $<)
|
||||
@$(bin2o)
|
||||
|
||||
-include $(DEPENDS)
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
endif
|
||||
#---------------------------------------------------------------------------------------
|
56
build/lapi.d
Normal file
56
build/lapi.d
Normal file
|
@ -0,0 +1,56 @@
|
|||
lapi.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h:
|
BIN
build/lapi.o
Normal file
BIN
build/lapi.o
Normal file
Binary file not shown.
14
build/lauxlib.d
Normal file
14
build/lauxlib.d
Normal file
|
@ -0,0 +1,14 @@
|
|||
lauxlib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
BIN
build/lauxlib.o
Normal file
BIN
build/lauxlib.o
Normal file
Binary file not shown.
17
build/lbaselib.d
Normal file
17
build/lbaselib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
lbaselib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lbaselib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/lbaselib.o
Normal file
BIN
build/lbaselib.o
Normal file
Binary file not shown.
59
build/lcode.d
Normal file
59
build/lcode.d
Normal file
|
@ -0,0 +1,59 @@
|
|||
lcode.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h:
|
BIN
build/lcode.o
Normal file
BIN
build/lcode.o
Normal file
Binary file not shown.
17
build/lcorolib.d
Normal file
17
build/lcorolib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
lcorolib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcorolib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/lcorolib.o
Normal file
BIN
build/lcorolib.o
Normal file
Binary file not shown.
17
build/lctype.d
Normal file
17
build/lctype.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
lctype.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
BIN
build/lctype.o
Normal file
BIN
build/lctype.o
Normal file
Binary file not shown.
17
build/ldblib.d
Normal file
17
build/ldblib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
ldblib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldblib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/ldblib.o
Normal file
BIN
build/ldblib.o
Normal file
Binary file not shown.
65
build/ldebug.d
Normal file
65
build/ldebug.d
Normal file
|
@ -0,0 +1,65 @@
|
|||
ldebug.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h:
|
BIN
build/ldebug.o
Normal file
BIN
build/ldebug.o
Normal file
Binary file not shown.
62
build/ldo.d
Normal file
62
build/ldo.d
Normal file
|
@ -0,0 +1,62 @@
|
|||
ldo.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h:
|
BIN
build/ldo.o
Normal file
BIN
build/ldo.o
Normal file
Binary file not shown.
32
build/ldump.d
Normal file
32
build/ldump.d
Normal file
|
@ -0,0 +1,32 @@
|
|||
ldump.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldump.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.h:
|
BIN
build/ldump.o
Normal file
BIN
build/ldump.o
Normal file
Binary file not shown.
41
build/lfunc.d
Normal file
41
build/lfunc.d
Normal file
|
@ -0,0 +1,41 @@
|
|||
lfunc.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
BIN
build/lfunc.o
Normal file
BIN
build/lfunc.o
Normal file
Binary file not shown.
47
build/lgc.d
Normal file
47
build/lgc.d
Normal file
|
@ -0,0 +1,47 @@
|
|||
lgc.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
BIN
build/lgc.o
Normal file
BIN
build/lgc.o
Normal file
Binary file not shown.
17
build/linit.d
Normal file
17
build/linit.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
linit.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/linit.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
BIN
build/linit.o
Normal file
BIN
build/linit.o
Normal file
Binary file not shown.
17
build/liolib.d
Normal file
17
build/liolib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
liolib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/liolib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/liolib.o
Normal file
BIN
build/liolib.o
Normal file
Binary file not shown.
53
build/llex.d
Normal file
53
build/llex.d
Normal file
|
@ -0,0 +1,53 @@
|
|||
llex.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
BIN
build/llex.o
Normal file
BIN
build/llex.o
Normal file
Binary file not shown.
17
build/lmathlib.d
Normal file
17
build/lmathlib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
lmathlib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmathlib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/lmathlib.o
Normal file
BIN
build/lmathlib.o
Normal file
Binary file not shown.
38
build/lmem.d
Normal file
38
build/lmem.d
Normal file
|
@ -0,0 +1,38 @@
|
|||
lmem.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
BIN
build/lmem.o
Normal file
BIN
build/lmem.o
Normal file
Binary file not shown.
17
build/loadlib.d
Normal file
17
build/loadlib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
loadlib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/loadlib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/loadlib.o
Normal file
BIN
build/loadlib.o
Normal file
Binary file not shown.
47
build/lobject.d
Normal file
47
build/lobject.d
Normal file
|
@ -0,0 +1,47 @@
|
|||
lobject.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h:
|
BIN
build/lobject.o
Normal file
BIN
build/lobject.o
Normal file
Binary file not shown.
17
build/lopcodes.d
Normal file
17
build/lopcodes.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
lopcodes.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
BIN
build/lopcodes.o
Normal file
BIN
build/lopcodes.o
Normal file
Binary file not shown.
17
build/loslib.d
Normal file
17
build/loslib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
loslib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/loslib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/loslib.o
Normal file
BIN
build/loslib.o
Normal file
Binary file not shown.
59
build/lparser.d
Normal file
59
build/lparser.d
Normal file
|
@ -0,0 +1,59 @@
|
|||
lparser.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
BIN
build/lparser.o
Normal file
BIN
build/lparser.o
Normal file
Binary file not shown.
53
build/lstate.d
Normal file
53
build/lstate.d
Normal file
|
@ -0,0 +1,53 @@
|
|||
lstate.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
BIN
build/lstate.o
Normal file
BIN
build/lstate.o
Normal file
Binary file not shown.
41
build/lstring.d
Normal file
41
build/lstring.d
Normal file
|
@ -0,0 +1,41 @@
|
|||
lstring.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
BIN
build/lstring.o
Normal file
BIN
build/lstring.o
Normal file
Binary file not shown.
17
build/lstrlib.d
Normal file
17
build/lstrlib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
lstrlib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstrlib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/lstrlib.o
Normal file
BIN
build/lstrlib.o
Normal file
Binary file not shown.
47
build/ltable.d
Normal file
47
build/ltable.d
Normal file
|
@ -0,0 +1,47 @@
|
|||
ltable.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h:
|
BIN
build/ltable.o
Normal file
BIN
build/ltable.o
Normal file
Binary file not shown.
17
build/ltablib.d
Normal file
17
build/ltablib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
ltablib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltablib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/ltablib.o
Normal file
BIN
build/ltablib.o
Normal file
Binary file not shown.
74
build/ltests.d
Normal file
74
build/ltests.d
Normal file
|
@ -0,0 +1,74 @@
|
|||
ltests.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltests.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopnames.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lapi.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lcode.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llex.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lparser.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lctype.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopnames.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/ltests.o
Normal file
BIN
build/ltests.o
Normal file
Binary file not shown.
47
build/ltm.d
Normal file
47
build/ltm.d
Normal file
|
@ -0,0 +1,47 @@
|
|||
ltm.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h:
|
BIN
build/ltm.o
Normal file
BIN
build/ltm.o
Normal file
Binary file not shown.
17
build/lua.d
Normal file
17
build/lua.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
lua.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/lua.o
Normal file
BIN
build/lua.o
Normal file
Binary file not shown.
47
build/lundump.d
Normal file
47
build/lundump.d
Normal file
|
@ -0,0 +1,47 @@
|
|||
lundump.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lundump.h:
|
BIN
build/lundump.o
Normal file
BIN
build/lundump.o
Normal file
Binary file not shown.
17
build/lutf8lib.d
Normal file
17
build/lutf8lib.d
Normal file
|
@ -0,0 +1,17 @@
|
|||
lutf8lib.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lutf8lib.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lauxlib.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lualib.h:
|
BIN
build/lutf8lib.o
Normal file
BIN
build/lutf8lib.o
Normal file
Binary file not shown.
56
build/lvm.d
Normal file
56
build/lvm.d
Normal file
|
@ -0,0 +1,56 @@
|
|||
lvm.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ljumptab.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldebug.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ldo.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lfunc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lgc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lopcodes.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstring.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltable.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lvm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ljumptab.h:
|
BIN
build/lvm.o
Normal file
BIN
build/lvm.o
Normal file
Binary file not shown.
29
build/lzio.d
Normal file
29
build/lzio.d
Normal file
|
@ -0,0 +1,29 @@
|
|||
lzio.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.c \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lprefix.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNX/saltysd_plugin_example/source/lua/lzio.h:
|
BIN
build/lzio.o
Normal file
BIN
build/lzio.o
Normal file
Binary file not shown.
335
build/main.d
Normal file
335
build/main.d
Normal file
|
@ -0,0 +1,335 @@
|
|||
main.o: \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/main.c \
|
||||
/opt/devkitpro//libnx/include/switch.h \
|
||||
/opt/devkitpro//libnx/include/switch/types.h \
|
||||
/opt/devkitpro//libnx/include/switch/result.h \
|
||||
/opt/devkitpro//libnx/include/switch/nro.h \
|
||||
/opt/devkitpro//libnx/include/switch/nacp.h \
|
||||
/opt/devkitpro//libnx/include/switch/arm/tls.h \
|
||||
/opt/devkitpro//libnx/include/switch/arm/cache.h \
|
||||
/opt/devkitpro//libnx/include/switch/arm/atomics.h \
|
||||
/opt/devkitpro//libnx/include/switch/arm/counter.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/svc.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/../arm/thread_context.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/wait.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/mutex.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/tmem.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/shmem.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/event.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/uevent.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/utimer.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/rwlock.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/condvar.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/thread.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/semaphore.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/virtmem.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/detect.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/random.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/jit.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/ipc.h \
|
||||
/opt/devkitpro//libnx/include/switch/kernel/barrier.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/sm.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/smm.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/../services/fs.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/fsldr.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/fspr.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/acc.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/apm.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/applet.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/audin.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/../audio/audio.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/audout.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/audren.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/auddev.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/hwopus.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/csrng.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/lbl.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/i2c.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/gpio.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/bpc.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/pcv.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/psm.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/spsm.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/fatal.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/time.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/usb.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/usbds.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/usbhs.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/hid.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/irs.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/pl.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/vi.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/nv.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/nifm.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/ns.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/ldr.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/ro.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/pm.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/set.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/lr.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/spl.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/ncm.h \
|
||||
/opt/devkitpro//libnx/include/switch/services/psc.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/gfx.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/fence.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/ioctl.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/types.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/binder.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/parcel.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/buffer_producer.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/types.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/native_window.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/graphic_buffer.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/framebuffer.h \
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/map.h \
|
||||
/opt/devkitpro//libnx/include/switch/nvidia/address_space.h \
|
||||
/opt/devkitpro//libnx/include/switch/nvidia/channel.h \
|
||||
/opt/devkitpro//libnx/include/switch/nvidia/gpu.h \
|
||||
/opt/devkitpro//libnx/include/switch/nvidia/gpu_channel.h \
|
||||
/opt/devkitpro//libnx/include/switch/audio/driver.h \
|
||||
/opt/devkitpro//libnx/include/switch/applets/libapplet.h \
|
||||
/opt/devkitpro//libnx/include/switch/applets/swkbd.h \
|
||||
/opt/devkitpro//libnx/include/switch/runtime/env.h \
|
||||
/opt/devkitpro//libnx/include/switch/runtime/nxlink.h \
|
||||
/opt/devkitpro//libnx/include/switch/runtime/util/utf.h \
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/console.h \
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/usb_comms.h \
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/fs_dev.h \
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/romfs_dev.h \
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/socket.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/useful.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/saltysd_core.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/saltysd_ipc.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/saltysd_dynamic.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/luaconf.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lstate.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lua.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lobject.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/llimits.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/ltm.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lzio.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lmem.h \
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/l2c.h
|
||||
|
||||
/opt/devkitpro//libnx/include/switch.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/types.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/result.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/nro.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/nacp.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/arm/tls.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/arm/cache.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/arm/atomics.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/arm/counter.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/svc.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/../arm/thread_context.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/wait.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/mutex.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/tmem.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/shmem.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/event.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/uevent.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/utimer.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/rwlock.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/condvar.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/thread.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/semaphore.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/virtmem.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/detect.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/random.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/jit.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/ipc.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/kernel/barrier.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/sm.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/smm.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/../services/fs.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/fsldr.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/fspr.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/acc.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/apm.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/applet.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/audin.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/../audio/audio.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/audout.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/audren.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/auddev.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/hwopus.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/csrng.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/lbl.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/i2c.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/gpio.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/bpc.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/pcv.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/psm.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/spsm.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/fatal.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/time.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/usb.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/usbds.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/usbhs.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/hid.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/irs.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/pl.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/vi.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/nv.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/nifm.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/ns.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/ldr.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/ro.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/pm.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/set.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/lr.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/spl.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/ncm.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/services/psc.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/gfx.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/fence.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/ioctl.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/types.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/binder.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/parcel.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/buffer_producer.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/types.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/native_window.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/graphic_buffer.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/framebuffer.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/display/../nvidia/map.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/nvidia/address_space.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/nvidia/channel.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/nvidia/gpu.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/nvidia/gpu_channel.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/audio/driver.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/applets/libapplet.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/applets/swkbd.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/runtime/env.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/runtime/nxlink.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/runtime/util/utf.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/console.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/usb_comms.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/fs_dev.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/romfs_dev.h:
|
||||
|
||||
/opt/devkitpro//libnx/include/switch/runtime/devices/socket.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/useful.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/saltysd_core.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/saltysd_ipc.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/saltysd_dynamic.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/luaconf.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lstate.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lua.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lobject.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/llimits.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/ltm.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lzio.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/lua/lmem.h:
|
||||
|
||||
/mnt/c/Users/Jugeeya/Documents/Games/SwitchHacking/UltimateModding/SaltyNXHitboxVisualization/saltysd_plugin_example/source/l2c.h:
|
BIN
build/main.o
Normal file
BIN
build/main.o
Normal file
Binary file not shown.
0
build/saltysd_plugin_example.lst
Normal file
0
build/saltysd_plugin_example.lst
Normal file
6403
build/saltysd_plugin_example.map
Normal file
6403
build/saltysd_plugin_example.map
Normal file
File diff suppressed because it is too large
Load diff
BIN
saltysd_plugin_example.elf
Normal file
BIN
saltysd_plugin_example.elf
Normal file
Binary file not shown.
254
source/l2c.h
Normal file
254
source/l2c.h
Normal file
|
@ -0,0 +1,254 @@
|
|||
#ifndef L2C_H
|
||||
#define L2C_H
|
||||
|
||||
//#include "useful.h"
|
||||
//#include "crc32.h"
|
||||
|
||||
typedef struct Hash40
|
||||
{
|
||||
uint64_t hash : 40;
|
||||
} Hash40;
|
||||
|
||||
enum L2CVarType
|
||||
{
|
||||
L2C_void = 0,
|
||||
L2C_bool = 1,
|
||||
L2C_integer = 2,
|
||||
L2C_number = 3,
|
||||
L2C_pointer = 4,
|
||||
L2C_table = 5,
|
||||
L2C_inner_function = 6,
|
||||
L2C_hash = 7,
|
||||
L2C_string = 8,
|
||||
};
|
||||
|
||||
typedef struct L2CTable_meta
|
||||
{
|
||||
uint64_t a;
|
||||
uint64_t b;
|
||||
uint64_t c;
|
||||
uint64_t d;
|
||||
} L2CTable_meta;
|
||||
|
||||
typedef struct L2CTable
|
||||
{
|
||||
uint32_t refcnt;
|
||||
uint32_t unk;
|
||||
|
||||
uint64_t begin; // L2CValue*
|
||||
uint64_t end; // L2CValue*
|
||||
uint64_t also_end; // L2CValue*
|
||||
struct L2CTable_meta meta;
|
||||
uint64_t unk_ptr;
|
||||
} L2CTable;
|
||||
|
||||
typedef struct L2CInnerFunctionBase
|
||||
{
|
||||
uint64_t unk;
|
||||
uint32_t refcnt;
|
||||
} L2CInnerFunctionBase;
|
||||
|
||||
typedef struct L2CValue
|
||||
{
|
||||
uint32_t type;
|
||||
uint32_t unk;
|
||||
union
|
||||
{
|
||||
uint64_t raw;
|
||||
float raw_float;
|
||||
void* raw_pointer;
|
||||
struct L2CTable* raw_table;
|
||||
struct L2CInnerFunctionBase* raw_innerfunc;
|
||||
//std::string* raw_string;
|
||||
};
|
||||
} L2CValue;
|
||||
|
||||
typedef struct L2CAgent
|
||||
{
|
||||
uint64_t vtable;
|
||||
uint64_t lua_state_agent;
|
||||
uint64_t unk10;
|
||||
uint64_t unk18;
|
||||
uint64_t unk20;
|
||||
uint64_t unk28;
|
||||
uint64_t unk30;
|
||||
uint64_t unk38;
|
||||
uint64_t lua_state_agentbase;
|
||||
} L2CAgent;
|
||||
|
||||
typedef struct lua_State_smash
|
||||
{
|
||||
uint64_t unk0;
|
||||
uint64_t unk8;
|
||||
uint64_t unk10;
|
||||
uint64_t unk18;
|
||||
uint64_t unk20;
|
||||
uint64_t unk28;
|
||||
uint64_t unk30;
|
||||
uint64_t unk38;
|
||||
uint64_t unk40;
|
||||
uint64_t unkptr48;
|
||||
uint64_t unkptr50;
|
||||
uint64_t unk58;
|
||||
uint64_t unk60;
|
||||
uint64_t unk68;
|
||||
uint64_t unk70;
|
||||
uint64_t unk78;
|
||||
uint64_t unk80;
|
||||
uint64_t unk88;
|
||||
uint64_t unk90;
|
||||
uint64_t unkptr98;
|
||||
uint64_t unkptrA0;
|
||||
uint64_t unkA8;
|
||||
uint64_t unkB0;
|
||||
uint64_t unkB8;
|
||||
uint64_t unkC0;
|
||||
uint64_t unkptrC8;
|
||||
uint64_t unkD0;
|
||||
uint64_t unkD8;
|
||||
uint64_t unkE0;
|
||||
uint64_t unkE8;
|
||||
uint64_t unkF0;
|
||||
uint64_t unkF8;
|
||||
uint64_t unk100;
|
||||
uint64_t unk108;
|
||||
uint64_t unk110;
|
||||
uint64_t unkptr118;
|
||||
uint64_t unk120;
|
||||
uint64_t unk128;
|
||||
uint64_t unk130;
|
||||
uint64_t unk138;
|
||||
uint64_t unk140;
|
||||
uint64_t unk148;
|
||||
uint64_t unk150;
|
||||
uint64_t unkptr158;
|
||||
uint64_t unk160;
|
||||
uint64_t unk168;
|
||||
uint64_t unk170;
|
||||
uint64_t unk178;
|
||||
uint64_t unk180;
|
||||
uint64_t unk188;
|
||||
uint64_t unk190;
|
||||
uint64_t unk198;
|
||||
uint64_t unk1A0;
|
||||
uint64_t unk1A8;
|
||||
uint64_t unk1B0;
|
||||
uint64_t unk1B8;
|
||||
uint64_t unk1C0;
|
||||
uint64_t unk1C8;
|
||||
uint64_t unk1D0;
|
||||
uint64_t unk1D8;
|
||||
uint64_t unk1E0;
|
||||
uint64_t unk1E8;
|
||||
uint64_t unk1F0;
|
||||
uint64_t unk1F8;
|
||||
uint64_t unk200;
|
||||
uint64_t unk208;
|
||||
uint64_t unk210;
|
||||
uint64_t unk218;
|
||||
} lua_State_smash;
|
||||
|
||||
struct lua_Stateptr48
|
||||
{
|
||||
uint64_t vtable;
|
||||
};
|
||||
|
||||
struct lua_Stateptr50
|
||||
{
|
||||
uint64_t vtable;
|
||||
};
|
||||
|
||||
struct lua_Stateptr98
|
||||
{
|
||||
uint64_t vtable;
|
||||
};
|
||||
|
||||
struct lua_StateptrA0
|
||||
{
|
||||
uint64_t vtable;
|
||||
};
|
||||
|
||||
struct lua_StateptrC8
|
||||
{
|
||||
uint64_t vtable;
|
||||
};
|
||||
|
||||
struct lua_Stateptr118
|
||||
{
|
||||
uint64_t vtable;
|
||||
};
|
||||
|
||||
struct lua_Stateptr158
|
||||
{
|
||||
uint64_t vtable;
|
||||
};
|
||||
|
||||
struct lua_Stateptr50Vtable
|
||||
{
|
||||
uint64_t unk0;
|
||||
uint64_t unk8;
|
||||
uint64_t unk10;
|
||||
uint64_t unk18;
|
||||
uint64_t unk20;
|
||||
uint64_t unk28;
|
||||
uint64_t unk30;
|
||||
uint64_t unk38;
|
||||
uint64_t unk40;
|
||||
uint64_t unk48;
|
||||
uint64_t unk50;
|
||||
uint64_t unk58;
|
||||
uint64_t unk60;
|
||||
uint64_t unk68;
|
||||
uint64_t unk70;
|
||||
uint64_t unk78;
|
||||
uint64_t unk80;
|
||||
uint64_t unk88;
|
||||
uint64_t unk90;
|
||||
uint64_t unk98;
|
||||
uint64_t unkA0;
|
||||
uint64_t unkA8;
|
||||
uint64_t unkB0;
|
||||
uint64_t unkB8;
|
||||
uint64_t unkC0;
|
||||
uint64_t unkC8;
|
||||
uint64_t unkD0;
|
||||
uint64_t unkD8;
|
||||
uint64_t unkE0;
|
||||
uint64_t unkE8;
|
||||
uint64_t unkF0;
|
||||
uint64_t unkF8;
|
||||
uint64_t unk100;
|
||||
uint64_t unk108;
|
||||
uint64_t unk110;
|
||||
uint64_t unk118;
|
||||
uint64_t unk120;
|
||||
uint64_t unk128;
|
||||
uint64_t unk130;
|
||||
uint64_t unk138;
|
||||
uint64_t unk140;
|
||||
uint64_t unk148;
|
||||
uint64_t unk150;
|
||||
uint64_t unk158;
|
||||
uint64_t unk160;
|
||||
uint64_t unk168;
|
||||
uint64_t unk170;
|
||||
uint64_t unk178;
|
||||
uint64_t unk180;
|
||||
uint64_t unk188;
|
||||
uint64_t unk190;
|
||||
uint64_t unk198;
|
||||
uint64_t unk1A0;
|
||||
uint64_t unk1A8;
|
||||
uint64_t unk1B0;
|
||||
uint64_t unk1B8;
|
||||
uint64_t unk1C0;
|
||||
uint64_t unk1C8;
|
||||
uint64_t unk1D0;
|
||||
uint64_t unk1D8;
|
||||
uint64_t unk1E0;
|
||||
uint64_t unk1E8;
|
||||
uint64_t unk1F0;
|
||||
uint64_t unk1F8;
|
||||
};
|
||||
|
||||
#endif // L2C_H
|
BIN
source/lua-master.zip
Normal file
BIN
source/lua-master.zip
Normal file
Binary file not shown.
9
source/lua/all
Normal file
9
source/lua/all
Normal file
|
@ -0,0 +1,9 @@
|
|||
make -s -j
|
||||
cd testes/libs; make -s
|
||||
cd .. # back to directory 'testes'
|
||||
ulimit -S -s 2000
|
||||
if { ../lua all.lua; } then
|
||||
echo -e "\n\n final OK!!!!\n\n"
|
||||
else
|
||||
echo -e "\n\n >>>> BUG!!!!\n\n"
|
||||
fi
|
4052
source/lua/bugs
Normal file
4052
source/lua/bugs
Normal file
File diff suppressed because it is too large
Load diff
1408
source/lua/lapi.c
Normal file
1408
source/lua/lapi.c
Normal file
File diff suppressed because it is too large
Load diff
37
source/lua/lapi.h
Normal file
37
source/lua/lapi.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
** $Id: lapi.h $
|
||||
** Auxiliary functions from Lua API
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#ifndef lapi_h
|
||||
#define lapi_h
|
||||
|
||||
|
||||
#include "llimits.h"
|
||||
#include "lstate.h"
|
||||
|
||||
#define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
|
||||
"stack overflow");}
|
||||
|
||||
#define adjustresults(L,nres) \
|
||||
{ if ((nres) <= LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
|
||||
|
||||
#define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
|
||||
"not enough elements in the stack")
|
||||
|
||||
|
||||
/*
|
||||
** To reduce the overhead of returning from C functions, the presence of
|
||||
** to-be-closed variables in these functions is coded in the CallInfo's
|
||||
** field 'nresults', in a way that functions with no to-be-closed variables
|
||||
** with zero, one, or "all" wanted results have no overhead. Functions
|
||||
** with other number of wanted results, as well as functions with
|
||||
** variables to be closed, have an extra check.
|
||||
*/
|
||||
|
||||
#define hastocloseCfunc(n) ((n) < LUA_MULTRET)
|
||||
|
||||
#define codeNresults(n) (-(n) - 3)
|
||||
|
||||
#endif
|
BIN
source/lua/lapi.o
Normal file
BIN
source/lua/lapi.o
Normal file
Binary file not shown.
1026
source/lua/lauxlib.c
Normal file
1026
source/lua/lauxlib.c
Normal file
File diff suppressed because it is too large
Load diff
262
source/lua/lauxlib.h
Normal file
262
source/lua/lauxlib.h
Normal file
|
@ -0,0 +1,262 @@
|
|||
/*
|
||||
** $Id: lauxlib.h $
|
||||
** Auxiliary functions for building Lua libraries
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
|
||||
#ifndef lauxlib_h
|
||||
#define lauxlib_h
|
||||
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
|
||||
/* global table */
|
||||
#define LUA_GNAME "_G"
|
||||
|
||||
|
||||
|
||||
/* extra error code for 'luaL_loadfilex' */
|
||||
#define LUA_ERRFILE (LUA_ERRERR+1)
|
||||
|
||||
|
||||
/* key, in the registry, for table of loaded modules */
|
||||
#define LUA_LOADED_TABLE "_LOADED"
|
||||
|
||||
|
||||
/* key, in the registry, for table of preloaded loaders */
|
||||
#define LUA_PRELOAD_TABLE "_PRELOAD"
|
||||
|
||||
|
||||
typedef struct luaL_Reg {
|
||||
const char *name;
|
||||
lua_CFunction func;
|
||||
} luaL_Reg;
|
||||
|
||||
|
||||
#define LUAL_NUMSIZES (sizeof(lua_Integer)*16 + sizeof(lua_Number))
|
||||
|
||||
LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver, size_t sz);
|
||||
#define luaL_checkversion(L) \
|
||||
luaL_checkversion_(L, LUA_VERSION_NUM, LUAL_NUMSIZES)
|
||||
|
||||
LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
|
||||
LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);
|
||||
LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len);
|
||||
LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg);
|
||||
LUALIB_API int (luaL_typeerror) (lua_State *L, int arg, const char *tname);
|
||||
LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg,
|
||||
size_t *l);
|
||||
LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg,
|
||||
const char *def, size_t *l);
|
||||
LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg);
|
||||
LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def);
|
||||
|
||||
LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg);
|
||||
LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg,
|
||||
lua_Integer def);
|
||||
|
||||
LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg);
|
||||
LUALIB_API void (luaL_checktype) (lua_State *L, int arg, int t);
|
||||
LUALIB_API void (luaL_checkany) (lua_State *L, int arg);
|
||||
|
||||
LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname);
|
||||
LUALIB_API void (luaL_setmetatable) (lua_State *L, const char *tname);
|
||||
LUALIB_API void *(luaL_testudata) (lua_State *L, int ud, const char *tname);
|
||||
LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname);
|
||||
|
||||
LUALIB_API void (luaL_where) (lua_State *L, int lvl);
|
||||
LUALIB_API int (luaL_error) (lua_State *L, const char *fmt, ...);
|
||||
|
||||
LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def,
|
||||
const char *const lst[]);
|
||||
|
||||
LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname);
|
||||
LUALIB_API int (luaL_execresult) (lua_State *L, int stat);
|
||||
|
||||
|
||||
/* predefined references */
|
||||
#define LUA_NOREF (-2)
|
||||
#define LUA_REFNIL (-1)
|
||||
|
||||
LUALIB_API int (luaL_ref) (lua_State *L, int t);
|
||||
LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref);
|
||||
|
||||
LUALIB_API int (luaL_loadfilex) (lua_State *L, const char *filename,
|
||||
const char *mode);
|
||||
|
||||
#define luaL_loadfile(L,f) luaL_loadfilex(L,f,NULL)
|
||||
|
||||
LUALIB_API int (luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz,
|
||||
const char *name, const char *mode);
|
||||
LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s);
|
||||
|
||||
LUALIB_API lua_State *(luaL_newstate) (void);
|
||||
|
||||
LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx);
|
||||
|
||||
LUALIB_API const char *(luaL_gsub) (lua_State *L, const char *s, const char *p,
|
||||
const char *r);
|
||||
|
||||
LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup);
|
||||
|
||||
LUALIB_API int (luaL_getsubtable) (lua_State *L, int idx, const char *fname);
|
||||
|
||||
LUALIB_API void (luaL_traceback) (lua_State *L, lua_State *L1,
|
||||
const char *msg, int level);
|
||||
|
||||
LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
|
||||
lua_CFunction openf, int glb);
|
||||
|
||||
/*
|
||||
** ===============================================================
|
||||
** some useful macros
|
||||
** ===============================================================
|
||||
*/
|
||||
|
||||
|
||||
#define luaL_newlibtable(L,l) \
|
||||
lua_createtable(L, 0, sizeof(l)/sizeof((l)[0]) - 1)
|
||||
|
||||
#define luaL_newlib(L,l) \
|
||||
(luaL_checkversion(L), luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))
|
||||
|
||||
#define luaL_argcheck(L, cond,arg,extramsg) \
|
||||
((void)((cond) || luaL_argerror(L, (arg), (extramsg))))
|
||||
|
||||
#define luaL_argexpected(L,cond,arg,tname) \
|
||||
((void)((cond) || luaL_typeerror(L, (arg), (tname))))
|
||||
|
||||
#define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL))
|
||||
#define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL))
|
||||
|
||||
#define luaL_typename(L,i) lua_typename(L, lua_type(L,(i)))
|
||||
|
||||
#define luaL_dofile(L, fn) \
|
||||
(luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0))
|
||||
|
||||
#define luaL_dostring(L, s) \
|
||||
(luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0))
|
||||
|
||||
#define luaL_getmetatable(L,n) (lua_getfield(L, LUA_REGISTRYINDEX, (n)))
|
||||
|
||||
#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
|
||||
|
||||
#define luaL_loadbuffer(L,s,sz,n) luaL_loadbufferx(L,s,sz,n,NULL)
|
||||
|
||||
|
||||
/*
|
||||
** {======================================================
|
||||
** Generic Buffer manipulation
|
||||
** =======================================================
|
||||
*/
|
||||
|
||||
typedef struct luaL_Buffer {
|
||||
char *b; /* buffer address */
|
||||
size_t size; /* buffer size */
|
||||
size_t n; /* number of characters in buffer */
|
||||
lua_State *L;
|
||||
union {
|
||||
LUAI_MAXALIGN; /* ensure maximum alignment for buffer */
|
||||
char b[LUAL_BUFFERSIZE]; /* initial buffer */
|
||||
} init;
|
||||
} luaL_Buffer;
|
||||
|
||||
|
||||
#define luaL_addchar(B,c) \
|
||||
((void)((B)->n < (B)->size || luaL_prepbuffsize((B), 1)), \
|
||||
((B)->b[(B)->n++] = (c)))
|
||||
|
||||
#define luaL_addsize(B,s) ((B)->n += (s))
|
||||
|
||||
LUALIB_API void (luaL_buffinit) (lua_State *L, luaL_Buffer *B);
|
||||
LUALIB_API char *(luaL_prepbuffsize) (luaL_Buffer *B, size_t sz);
|
||||
LUALIB_API void (luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l);
|
||||
LUALIB_API void (luaL_addstring) (luaL_Buffer *B, const char *s);
|
||||
LUALIB_API void (luaL_addvalue) (luaL_Buffer *B);
|
||||
LUALIB_API void (luaL_pushresult) (luaL_Buffer *B);
|
||||
LUALIB_API void (luaL_pushresultsize) (luaL_Buffer *B, size_t sz);
|
||||
LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz);
|
||||
|
||||
#define luaL_prepbuffer(B) luaL_prepbuffsize(B, LUAL_BUFFERSIZE)
|
||||
|
||||
/* }====================================================== */
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** {======================================================
|
||||
** File handles for IO library
|
||||
** =======================================================
|
||||
*/
|
||||
|
||||
/*
|
||||
** A file handle is a userdata with metatable 'LUA_FILEHANDLE' and
|
||||
** initial structure 'luaL_Stream' (it may contain other fields
|
||||
** after that initial structure).
|
||||
*/
|
||||
|
||||
#define LUA_FILEHANDLE "FILE*"
|
||||
|
||||
|
||||
typedef struct luaL_Stream {
|
||||
FILE *f; /* stream (NULL for incompletely created streams) */
|
||||
lua_CFunction closef; /* to close stream (NULL for closed streams) */
|
||||
} luaL_Stream;
|
||||
|
||||
/* }====================================================== */
|
||||
|
||||
/*
|
||||
** {==================================================================
|
||||
** "Abstraction Layer" for basic report of messages and errors
|
||||
** ===================================================================
|
||||
*/
|
||||
|
||||
/* print a string */
|
||||
#if !defined(lua_writestring)
|
||||
#define lua_writestring(s,l) fwrite((s), sizeof(char), (l), stdout)
|
||||
#endif
|
||||
|
||||
/* print a newline and flush the output */
|
||||
#if !defined(lua_writeline)
|
||||
#define lua_writeline() (lua_writestring("\n", 1), fflush(stdout))
|
||||
#endif
|
||||
|
||||
/* print an error message */
|
||||
#if !defined(lua_writestringerror)
|
||||
#define lua_writestringerror(s,p) \
|
||||
(fprintf(stderr, (s), (p)), fflush(stderr))
|
||||
#endif
|
||||
|
||||
/* }================================================================== */
|
||||
|
||||
|
||||
/*
|
||||
** {============================================================
|
||||
** Compatibility with deprecated conversions
|
||||
** =============================================================
|
||||
*/
|
||||
#if defined(LUA_COMPAT_APIINTCASTS)
|
||||
|
||||
#define luaL_checkunsigned(L,a) ((lua_Unsigned)luaL_checkinteger(L,a))
|
||||
#define luaL_optunsigned(L,a,d) \
|
||||
((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d)))
|
||||
|
||||
#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
|
||||
#define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d)))
|
||||
|
||||
#define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n)))
|
||||
#define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d)))
|
||||
|
||||
#endif
|
||||
/* }============================================================ */
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
BIN
source/lua/lauxlib.o
Normal file
BIN
source/lua/lauxlib.o
Normal file
Binary file not shown.
522
source/lua/lbaselib.c
Normal file
522
source/lua/lbaselib.c
Normal file
|
@ -0,0 +1,522 @@
|
|||
/*
|
||||
** $Id: lbaselib.c $
|
||||
** Basic library
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#define lbaselib_c
|
||||
#define LUA_LIB
|
||||
|
||||
#include "lprefix.h"
|
||||
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
#include "lauxlib.h"
|
||||
#include "lualib.h"
|
||||
|
||||
|
||||
static int luaB_print (lua_State *L) {
|
||||
int n = lua_gettop(L); /* number of arguments */
|
||||
int i;
|
||||
lua_getglobal(L, "tostring");
|
||||
for (i=1; i<=n; i++) {
|
||||
const char *s;
|
||||
size_t l;
|
||||
lua_pushvalue(L, -1); /* function to be called */
|
||||
lua_pushvalue(L, i); /* value to print */
|
||||
lua_call(L, 1, 1);
|
||||
s = lua_tolstring(L, -1, &l); /* get result */
|
||||
if (s == NULL)
|
||||
return luaL_error(L, "'tostring' must return a string to 'print'");
|
||||
if (i>1) lua_writestring("\t", 1);
|
||||
lua_writestring(s, l);
|
||||
lua_pop(L, 1); /* pop result */
|
||||
}
|
||||
lua_writeline();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_warn (lua_State *L) {
|
||||
const char *msg = luaL_checkstring(L, 1);
|
||||
lua_warning(L, msg, lua_toboolean(L, 2));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#define SPACECHARS " \f\n\r\t\v"
|
||||
|
||||
static const char *b_str2int (const char *s, int base, lua_Integer *pn) {
|
||||
lua_Unsigned n = 0;
|
||||
int neg = 0;
|
||||
s += strspn(s, SPACECHARS); /* skip initial spaces */
|
||||
if (*s == '-') { s++; neg = 1; } /* handle sign */
|
||||
else if (*s == '+') s++;
|
||||
if (!isalnum((unsigned char)*s)) /* no digit? */
|
||||
return NULL;
|
||||
do {
|
||||
int digit = (isdigit((unsigned char)*s)) ? *s - '0'
|
||||
: (toupper((unsigned char)*s) - 'A') + 10;
|
||||
if (digit >= base) return NULL; /* invalid numeral */
|
||||
n = n * base + digit;
|
||||
s++;
|
||||
} while (isalnum((unsigned char)*s));
|
||||
s += strspn(s, SPACECHARS); /* skip trailing spaces */
|
||||
*pn = (lua_Integer)((neg) ? (0u - n) : n);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_tonumber (lua_State *L) {
|
||||
if (lua_isnoneornil(L, 2)) { /* standard conversion? */
|
||||
if (lua_type(L, 1) == LUA_TNUMBER) { /* already a number? */
|
||||
lua_settop(L, 1); /* yes; return it */
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
size_t l;
|
||||
const char *s = lua_tolstring(L, 1, &l);
|
||||
if (s != NULL && lua_stringtonumber(L, s) == l + 1)
|
||||
return 1; /* successful conversion to number */
|
||||
/* else not a number */
|
||||
luaL_checkany(L, 1); /* (but there must be some parameter) */
|
||||
}
|
||||
}
|
||||
else {
|
||||
size_t l;
|
||||
const char *s;
|
||||
lua_Integer n = 0; /* to avoid warnings */
|
||||
lua_Integer base = luaL_checkinteger(L, 2);
|
||||
luaL_checktype(L, 1, LUA_TSTRING); /* no numbers as strings */
|
||||
s = lua_tolstring(L, 1, &l);
|
||||
luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range");
|
||||
if (b_str2int(s, (int)base, &n) == s + l) {
|
||||
lua_pushinteger(L, n);
|
||||
return 1;
|
||||
} /* else not a number */
|
||||
} /* else not a number */
|
||||
lua_pushnil(L); /* not a number */
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_error (lua_State *L) {
|
||||
int level = (int)luaL_optinteger(L, 2, 1);
|
||||
lua_settop(L, 1);
|
||||
if (lua_type(L, 1) == LUA_TSTRING && level > 0) {
|
||||
luaL_where(L, level); /* add extra information */
|
||||
lua_pushvalue(L, 1);
|
||||
lua_concat(L, 2);
|
||||
}
|
||||
return lua_error(L);
|
||||
}
|
||||
|
||||
|
||||
static int luaB_getmetatable (lua_State *L) {
|
||||
luaL_checkany(L, 1);
|
||||
if (!lua_getmetatable(L, 1)) {
|
||||
lua_pushnil(L);
|
||||
return 1; /* no metatable */
|
||||
}
|
||||
luaL_getmetafield(L, 1, "__metatable");
|
||||
return 1; /* returns either __metatable field (if present) or metatable */
|
||||
}
|
||||
|
||||
|
||||
static int luaB_setmetatable (lua_State *L) {
|
||||
int t = lua_type(L, 2);
|
||||
luaL_checktype(L, 1, LUA_TTABLE);
|
||||
luaL_argexpected(L, t == LUA_TNIL || t == LUA_TTABLE, 2, "nil or table");
|
||||
if (luaL_getmetafield(L, 1, "__metatable") != LUA_TNIL)
|
||||
return luaL_error(L, "cannot change a protected metatable");
|
||||
lua_settop(L, 2);
|
||||
lua_setmetatable(L, 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_rawequal (lua_State *L) {
|
||||
luaL_checkany(L, 1);
|
||||
luaL_checkany(L, 2);
|
||||
lua_pushboolean(L, lua_rawequal(L, 1, 2));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_rawlen (lua_State *L) {
|
||||
int t = lua_type(L, 1);
|
||||
luaL_argexpected(L, t == LUA_TTABLE || t == LUA_TSTRING, 1,
|
||||
"table or string");
|
||||
lua_pushinteger(L, lua_rawlen(L, 1));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_rawget (lua_State *L) {
|
||||
luaL_checktype(L, 1, LUA_TTABLE);
|
||||
luaL_checkany(L, 2);
|
||||
lua_settop(L, 2);
|
||||
lua_rawget(L, 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int luaB_rawset (lua_State *L) {
|
||||
luaL_checktype(L, 1, LUA_TTABLE);
|
||||
luaL_checkany(L, 2);
|
||||
luaL_checkany(L, 3);
|
||||
lua_settop(L, 3);
|
||||
lua_rawset(L, 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int pushmode (lua_State *L, int oldmode) {
|
||||
lua_pushstring(L, (oldmode == LUA_GCINC) ? "incremental" : "generational");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_collectgarbage (lua_State *L) {
|
||||
static const char *const opts[] = {"stop", "restart", "collect",
|
||||
"count", "step", "setpause", "setstepmul",
|
||||
"isrunning", "generational", "incremental", NULL};
|
||||
static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT,
|
||||
LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL,
|
||||
LUA_GCISRUNNING, LUA_GCGEN, LUA_GCINC};
|
||||
int o = optsnum[luaL_checkoption(L, 1, "collect", opts)];
|
||||
switch (o) {
|
||||
case LUA_GCCOUNT: {
|
||||
int k = lua_gc(L, o);
|
||||
int b = lua_gc(L, LUA_GCCOUNTB);
|
||||
lua_pushnumber(L, (lua_Number)k + ((lua_Number)b/1024));
|
||||
return 1;
|
||||
}
|
||||
case LUA_GCSTEP: {
|
||||
int step = (int)luaL_optinteger(L, 2, 0);
|
||||
int res = lua_gc(L, o, step);
|
||||
lua_pushboolean(L, res);
|
||||
return 1;
|
||||
}
|
||||
case LUA_GCSETPAUSE:
|
||||
case LUA_GCSETSTEPMUL: {
|
||||
int p = (int)luaL_optinteger(L, 2, 0);
|
||||
int previous = lua_gc(L, o, p);
|
||||
lua_pushinteger(L, previous);
|
||||
return 1;
|
||||
}
|
||||
case LUA_GCISRUNNING: {
|
||||
int res = lua_gc(L, o);
|
||||
lua_pushboolean(L, res);
|
||||
return 1;
|
||||
}
|
||||
case LUA_GCGEN: {
|
||||
int minormul = (int)luaL_optinteger(L, 2, 0);
|
||||
int majormul = (int)luaL_optinteger(L, 3, 0);
|
||||
return pushmode(L, lua_gc(L, o, minormul, majormul));
|
||||
}
|
||||
case LUA_GCINC: {
|
||||
int pause = (int)luaL_optinteger(L, 2, 0);
|
||||
int stepmul = (int)luaL_optinteger(L, 3, 0);
|
||||
int stepsize = (int)luaL_optinteger(L, 4, 0);
|
||||
return pushmode(L, lua_gc(L, o, pause, stepmul, stepsize));
|
||||
}
|
||||
default: {
|
||||
int res = lua_gc(L, o);
|
||||
lua_pushinteger(L, res);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int luaB_type (lua_State *L) {
|
||||
int t = lua_type(L, 1);
|
||||
luaL_argcheck(L, t != LUA_TNONE, 1, "value expected");
|
||||
lua_pushstring(L, lua_typename(L, t));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_next (lua_State *L) {
|
||||
luaL_checktype(L, 1, LUA_TTABLE);
|
||||
lua_settop(L, 2); /* create a 2nd argument if there isn't one */
|
||||
if (lua_next(L, 1))
|
||||
return 2;
|
||||
else {
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int luaB_pairs (lua_State *L) {
|
||||
luaL_checkany(L, 1);
|
||||
if (luaL_getmetafield(L, 1, "__pairs") == LUA_TNIL) { /* no metamethod? */
|
||||
lua_pushcfunction(L, luaB_next); /* will return generator, */
|
||||
lua_pushvalue(L, 1); /* state, */
|
||||
lua_pushnil(L); /* and initial value */
|
||||
}
|
||||
else {
|
||||
lua_pushvalue(L, 1); /* argument 'self' to metamethod */
|
||||
lua_call(L, 1, 3); /* get 3 values from metamethod */
|
||||
}
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Traversal function for 'ipairs'
|
||||
*/
|
||||
static int ipairsaux (lua_State *L) {
|
||||
lua_Integer i = luaL_checkinteger(L, 2) + 1;
|
||||
lua_pushinteger(L, i);
|
||||
return (lua_geti(L, 1, i) == LUA_TNIL) ? 1 : 2;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** 'ipairs' function. Returns 'ipairsaux', given "table", 0.
|
||||
** (The given "table" may not be a table.)
|
||||
*/
|
||||
static int luaB_ipairs (lua_State *L) {
|
||||
luaL_checkany(L, 1);
|
||||
lua_pushcfunction(L, ipairsaux); /* iteration function */
|
||||
lua_pushvalue(L, 1); /* state */
|
||||
lua_pushinteger(L, 0); /* initial value */
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
static int load_aux (lua_State *L, int status, int envidx) {
|
||||
if (status == LUA_OK) {
|
||||
if (envidx != 0) { /* 'env' parameter? */
|
||||
lua_pushvalue(L, envidx); /* environment for loaded function */
|
||||
if (!lua_setupvalue(L, -2, 1)) /* set it as 1st upvalue */
|
||||
lua_pop(L, 1); /* remove 'env' if not used by previous call */
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
else { /* error (message is on top of the stack) */
|
||||
lua_pushnil(L);
|
||||
lua_insert(L, -2); /* put before error message */
|
||||
return 2; /* return nil plus error message */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int luaB_loadfile (lua_State *L) {
|
||||
const char *fname = luaL_optstring(L, 1, NULL);
|
||||
const char *mode = luaL_optstring(L, 2, NULL);
|
||||
int env = (!lua_isnone(L, 3) ? 3 : 0); /* 'env' index or 0 if no 'env' */
|
||||
int status = luaL_loadfilex(L, fname, mode);
|
||||
return load_aux(L, status, env);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** {======================================================
|
||||
** Generic Read function
|
||||
** =======================================================
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
** reserved slot, above all arguments, to hold a copy of the returned
|
||||
** string to avoid it being collected while parsed. 'load' has four
|
||||
** optional arguments (chunk, source name, mode, and environment).
|
||||
*/
|
||||
#define RESERVEDSLOT 5
|
||||
|
||||
|
||||
/*
|
||||
** Reader for generic 'load' function: 'lua_load' uses the
|
||||
** stack for internal stuff, so the reader cannot change the
|
||||
** stack top. Instead, it keeps its resulting string in a
|
||||
** reserved slot inside the stack.
|
||||
*/
|
||||
static const char *generic_reader (lua_State *L, void *ud, size_t *size) {
|
||||
(void)(ud); /* not used */
|
||||
luaL_checkstack(L, 2, "too many nested functions");
|
||||
lua_pushvalue(L, 1); /* get function */
|
||||
lua_call(L, 0, 1); /* call it */
|
||||
if (lua_isnil(L, -1)) {
|
||||
lua_pop(L, 1); /* pop result */
|
||||
*size = 0;
|
||||
return NULL;
|
||||
}
|
||||
else if (!lua_isstring(L, -1))
|
||||
luaL_error(L, "reader function must return a string");
|
||||
lua_replace(L, RESERVEDSLOT); /* save string in reserved slot */
|
||||
return lua_tolstring(L, RESERVEDSLOT, size);
|
||||
}
|
||||
|
||||
|
||||
static int luaB_load (lua_State *L) {
|
||||
int status;
|
||||
size_t l;
|
||||
const char *s = lua_tolstring(L, 1, &l);
|
||||
const char *mode = luaL_optstring(L, 3, "bt");
|
||||
int env = (!lua_isnone(L, 4) ? 4 : 0); /* 'env' index or 0 if no 'env' */
|
||||
if (s != NULL) { /* loading a string? */
|
||||
const char *chunkname = luaL_optstring(L, 2, s);
|
||||
status = luaL_loadbufferx(L, s, l, chunkname, mode);
|
||||
}
|
||||
else { /* loading from a reader function */
|
||||
const char *chunkname = luaL_optstring(L, 2, "=(load)");
|
||||
luaL_checktype(L, 1, LUA_TFUNCTION);
|
||||
lua_settop(L, RESERVEDSLOT); /* create reserved slot */
|
||||
status = lua_load(L, generic_reader, NULL, chunkname, mode);
|
||||
}
|
||||
return load_aux(L, status, env);
|
||||
}
|
||||
|
||||
/* }====================================================== */
|
||||
|
||||
|
||||
static int dofilecont (lua_State *L, int d1, lua_KContext d2) {
|
||||
(void)d1; (void)d2; /* only to match 'lua_Kfunction' prototype */
|
||||
return lua_gettop(L) - 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_dofile (lua_State *L) {
|
||||
const char *fname = luaL_optstring(L, 1, NULL);
|
||||
lua_settop(L, 1);
|
||||
if (luaL_loadfile(L, fname) != LUA_OK)
|
||||
return lua_error(L);
|
||||
lua_callk(L, 0, LUA_MULTRET, 0, dofilecont);
|
||||
return dofilecont(L, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
static int luaB_assert (lua_State *L) {
|
||||
if (lua_toboolean(L, 1)) /* condition is true? */
|
||||
return lua_gettop(L); /* return all arguments */
|
||||
else { /* error */
|
||||
luaL_checkany(L, 1); /* there must be a condition */
|
||||
lua_remove(L, 1); /* remove it */
|
||||
lua_pushliteral(L, "assertion failed!"); /* default message */
|
||||
lua_settop(L, 1); /* leave only message (default if no other one) */
|
||||
return luaB_error(L); /* call 'error' */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int luaB_select (lua_State *L) {
|
||||
int n = lua_gettop(L);
|
||||
if (lua_type(L, 1) == LUA_TSTRING && *lua_tostring(L, 1) == '#') {
|
||||
lua_pushinteger(L, n-1);
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
lua_Integer i = luaL_checkinteger(L, 1);
|
||||
if (i < 0) i = n + i;
|
||||
else if (i > n) i = n;
|
||||
luaL_argcheck(L, 1 <= i, 1, "index out of range");
|
||||
return n - (int)i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Continuation function for 'pcall' and 'xpcall'. Both functions
|
||||
** already pushed a 'true' before doing the call, so in case of success
|
||||
** 'finishpcall' only has to return everything in the stack minus
|
||||
** 'extra' values (where 'extra' is exactly the number of items to be
|
||||
** ignored).
|
||||
*/
|
||||
static int finishpcall (lua_State *L, int status, lua_KContext extra) {
|
||||
if (status != LUA_OK && status != LUA_YIELD) { /* error? */
|
||||
lua_pushboolean(L, 0); /* first result (false) */
|
||||
lua_pushvalue(L, -2); /* error message */
|
||||
return 2; /* return false, msg */
|
||||
}
|
||||
else
|
||||
return lua_gettop(L) - (int)extra; /* return all results */
|
||||
}
|
||||
|
||||
|
||||
static int luaB_pcall (lua_State *L) {
|
||||
int status;
|
||||
luaL_checkany(L, 1);
|
||||
lua_pushboolean(L, 1); /* first result if no errors */
|
||||
lua_insert(L, 1); /* put it in place */
|
||||
status = lua_pcallk(L, lua_gettop(L) - 2, LUA_MULTRET, 0, 0, finishpcall);
|
||||
return finishpcall(L, status, 0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Do a protected call with error handling. After 'lua_rotate', the
|
||||
** stack will have <f, err, true, f, [args...]>; so, the function passes
|
||||
** 2 to 'finishpcall' to skip the 2 first values when returning results.
|
||||
*/
|
||||
static int luaB_xpcall (lua_State *L) {
|
||||
int status;
|
||||
int n = lua_gettop(L);
|
||||
luaL_checktype(L, 2, LUA_TFUNCTION); /* check error function */
|
||||
lua_pushboolean(L, 1); /* first result */
|
||||
lua_pushvalue(L, 1); /* function */
|
||||
lua_rotate(L, 3, 2); /* move them below function's arguments */
|
||||
status = lua_pcallk(L, n - 2, LUA_MULTRET, 2, 2, finishpcall);
|
||||
return finishpcall(L, status, 2);
|
||||
}
|
||||
|
||||
|
||||
static int luaB_tostring (lua_State *L) {
|
||||
luaL_checkany(L, 1);
|
||||
luaL_tolstring(L, 1, NULL);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static const luaL_Reg base_funcs[] = {
|
||||
{"assert", luaB_assert},
|
||||
{"collectgarbage", luaB_collectgarbage},
|
||||
{"dofile", luaB_dofile},
|
||||
{"error", luaB_error},
|
||||
{"getmetatable", luaB_getmetatable},
|
||||
{"ipairs", luaB_ipairs},
|
||||
{"loadfile", luaB_loadfile},
|
||||
{"load", luaB_load},
|
||||
{"next", luaB_next},
|
||||
{"pairs", luaB_pairs},
|
||||
{"pcall", luaB_pcall},
|
||||
{"print", luaB_print},
|
||||
{"warn", luaB_warn},
|
||||
{"rawequal", luaB_rawequal},
|
||||
{"rawlen", luaB_rawlen},
|
||||
{"rawget", luaB_rawget},
|
||||
{"rawset", luaB_rawset},
|
||||
{"select", luaB_select},
|
||||
{"setmetatable", luaB_setmetatable},
|
||||
{"tonumber", luaB_tonumber},
|
||||
{"tostring", luaB_tostring},
|
||||
{"type", luaB_type},
|
||||
{"xpcall", luaB_xpcall},
|
||||
/* placeholders */
|
||||
{LUA_GNAME, NULL},
|
||||
{"_VERSION", NULL},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
LUAMOD_API int luaopen_base (lua_State *L) {
|
||||
/* open lib into global table */
|
||||
lua_pushglobaltable(L);
|
||||
luaL_setfuncs(L, base_funcs, 0);
|
||||
/* set global _G */
|
||||
lua_pushvalue(L, -1);
|
||||
lua_setfield(L, -2, LUA_GNAME);
|
||||
/* set global _VERSION */
|
||||
lua_pushliteral(L, LUA_VERSION);
|
||||
lua_setfield(L, -2, "_VERSION");
|
||||
return 1;
|
||||
}
|
||||
|
BIN
source/lua/lbaselib.o
Normal file
BIN
source/lua/lbaselib.o
Normal file
Binary file not shown.
1682
source/lua/lcode.c
Normal file
1682
source/lua/lcode.c
Normal file
File diff suppressed because it is too large
Load diff
93
source/lua/lcode.h
Normal file
93
source/lua/lcode.h
Normal file
|
@ -0,0 +1,93 @@
|
|||
/*
|
||||
** $Id: lcode.h $
|
||||
** Code generator for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#ifndef lcode_h
|
||||
#define lcode_h
|
||||
|
||||
#include "llex.h"
|
||||
#include "lobject.h"
|
||||
#include "lopcodes.h"
|
||||
#include "lparser.h"
|
||||
|
||||
|
||||
/*
|
||||
** Marks the end of a patch list. It is an invalid value both as an absolute
|
||||
** address, and as a list link (would link an element to itself).
|
||||
*/
|
||||
#define NO_JUMP (-1)
|
||||
|
||||
|
||||
/*
|
||||
** grep "ORDER OPR" if you change these enums (ORDER OP)
|
||||
*/
|
||||
typedef enum BinOpr {
|
||||
OPR_ADD, OPR_SUB, OPR_MUL, OPR_MOD, OPR_POW,
|
||||
OPR_DIV,
|
||||
OPR_IDIV,
|
||||
OPR_BAND, OPR_BOR, OPR_BXOR,
|
||||
OPR_SHL, OPR_SHR,
|
||||
OPR_CONCAT,
|
||||
OPR_EQ, OPR_LT, OPR_LE,
|
||||
OPR_NE, OPR_GT, OPR_GE,
|
||||
OPR_AND, OPR_OR,
|
||||
OPR_NOBINOPR
|
||||
} BinOpr;
|
||||
|
||||
|
||||
#define luaK_codeABC(fs,o,a,b,c) luaK_codeABCk(fs,o,a,b,c,0)
|
||||
|
||||
|
||||
typedef enum UnOpr { OPR_MINUS, OPR_BNOT, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
|
||||
|
||||
|
||||
/* get (pointer to) instruction of given 'expdesc' */
|
||||
#define getinstruction(fs,e) ((fs)->f->code[(e)->u.info])
|
||||
|
||||
|
||||
#define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET)
|
||||
|
||||
#define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t)
|
||||
|
||||
LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx);
|
||||
LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx);
|
||||
LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A,
|
||||
int B, int C, int k);
|
||||
LUAI_FUNC int luaK_isKint (expdesc *e);
|
||||
LUAI_FUNC void luaK_fixline (FuncState *fs, int line);
|
||||
LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n);
|
||||
LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n);
|
||||
LUAI_FUNC void luaK_checkstack (FuncState *fs, int n);
|
||||
LUAI_FUNC int luaK_stringK (FuncState *fs, TString *s);
|
||||
LUAI_FUNC void luaK_int (FuncState *fs, int reg, lua_Integer n);
|
||||
LUAI_FUNC void luaK_dischargevars (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC int luaK_exp2anyreg (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC void luaK_exp2anyregup (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC void luaK_exp2nextreg (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC void luaK_exp2val (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC int luaK_exp2RK (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC void luaK_self (FuncState *fs, expdesc *e, expdesc *key);
|
||||
LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k);
|
||||
LUAI_FUNC void luaK_goiftrue (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC void luaK_goiffalse (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e);
|
||||
LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults);
|
||||
LUAI_FUNC void luaK_setoneret (FuncState *fs, expdesc *e);
|
||||
LUAI_FUNC int luaK_jump (FuncState *fs);
|
||||
LUAI_FUNC void luaK_ret (FuncState *fs, int first, int nret);
|
||||
LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target);
|
||||
LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list);
|
||||
LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2);
|
||||
LUAI_FUNC int luaK_getlabel (FuncState *fs);
|
||||
LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line);
|
||||
LUAI_FUNC void luaK_infix (FuncState *fs, BinOpr op, expdesc *v);
|
||||
LUAI_FUNC void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1,
|
||||
expdesc *v2, int line);
|
||||
LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
|
||||
LUAI_FUNC void luaK_finish (FuncState *fs);
|
||||
LUAI_FUNC l_noret luaK_semerror (LexState *ls, const char *msg);
|
||||
|
||||
|
||||
#endif
|
BIN
source/lua/lcode.o
Normal file
BIN
source/lua/lcode.o
Normal file
Binary file not shown.
201
source/lua/lcorolib.c
Normal file
201
source/lua/lcorolib.c
Normal file
|
@ -0,0 +1,201 @@
|
|||
/*
|
||||
** $Id: lcorolib.c $
|
||||
** Coroutine Library
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#define lcorolib_c
|
||||
#define LUA_LIB
|
||||
|
||||
#include "lprefix.h"
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
#include "lauxlib.h"
|
||||
#include "lualib.h"
|
||||
|
||||
|
||||
static lua_State *getco (lua_State *L) {
|
||||
lua_State *co = lua_tothread(L, 1);
|
||||
luaL_argexpected(L, co, 1, "thread");
|
||||
return co;
|
||||
}
|
||||
|
||||
|
||||
static int auxresume (lua_State *L, lua_State *co, int narg) {
|
||||
int status, nres;
|
||||
if (!lua_checkstack(co, narg)) {
|
||||
lua_pushliteral(L, "too many arguments to resume");
|
||||
return -1; /* error flag */
|
||||
}
|
||||
if (lua_status(co) == LUA_OK && lua_gettop(co) == 0) {
|
||||
lua_pushliteral(L, "cannot resume dead coroutine");
|
||||
return -1; /* error flag */
|
||||
}
|
||||
lua_xmove(L, co, narg);
|
||||
status = lua_resume(co, L, narg, &nres);
|
||||
if (status == LUA_OK || status == LUA_YIELD) {
|
||||
if (!lua_checkstack(L, nres + 1)) {
|
||||
lua_pop(co, nres); /* remove results anyway */
|
||||
lua_pushliteral(L, "too many results to resume");
|
||||
return -1; /* error flag */
|
||||
}
|
||||
lua_xmove(co, L, nres); /* move yielded values */
|
||||
return nres;
|
||||
}
|
||||
else {
|
||||
lua_xmove(co, L, 1); /* move error message */
|
||||
return -1; /* error flag */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int luaB_coresume (lua_State *L) {
|
||||
lua_State *co = getco(L);
|
||||
int r;
|
||||
r = auxresume(L, co, lua_gettop(L) - 1);
|
||||
if (r < 0) {
|
||||
lua_pushboolean(L, 0);
|
||||
lua_insert(L, -2);
|
||||
return 2; /* return false + error message */
|
||||
}
|
||||
else {
|
||||
lua_pushboolean(L, 1);
|
||||
lua_insert(L, -(r + 1));
|
||||
return r + 1; /* return true + 'resume' returns */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int luaB_auxwrap (lua_State *L) {
|
||||
lua_State *co = lua_tothread(L, lua_upvalueindex(1));
|
||||
int r = auxresume(L, co, lua_gettop(L));
|
||||
if (r < 0) {
|
||||
if (lua_type(L, -1) == LUA_TSTRING) { /* error object is a string? */
|
||||
luaL_where(L, 1); /* add extra info */
|
||||
lua_insert(L, -2);
|
||||
lua_concat(L, 2);
|
||||
}
|
||||
return lua_error(L); /* propagate error */
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_cocreate (lua_State *L) {
|
||||
lua_State *NL;
|
||||
luaL_checktype(L, 1, LUA_TFUNCTION);
|
||||
NL = lua_newthread(L);
|
||||
lua_pushvalue(L, 1); /* move function to top */
|
||||
lua_xmove(L, NL, 1); /* move function from L to NL */
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_cowrap (lua_State *L) {
|
||||
luaB_cocreate(L);
|
||||
lua_pushcclosure(L, luaB_auxwrap, 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_yield (lua_State *L) {
|
||||
return lua_yield(L, lua_gettop(L));
|
||||
}
|
||||
|
||||
|
||||
#define COS_RUN 0
|
||||
#define COS_DEAD 1
|
||||
#define COS_YIELD 2
|
||||
#define COS_NORM 3
|
||||
|
||||
|
||||
static const char *statname[] = {"running", "dead", "suspended", "normal"};
|
||||
|
||||
|
||||
static int auxstatus (lua_State *L, lua_State *co) {
|
||||
if (L == co) return COS_RUN;
|
||||
else {
|
||||
switch (lua_status(co)) {
|
||||
case LUA_YIELD:
|
||||
return COS_YIELD;
|
||||
case LUA_OK: {
|
||||
lua_Debug ar;
|
||||
if (lua_getstack(co, 0, &ar)) /* does it have frames? */
|
||||
return COS_NORM; /* it is running */
|
||||
else if (lua_gettop(co) == 0)
|
||||
return COS_DEAD;
|
||||
else
|
||||
return COS_YIELD; /* initial state */
|
||||
}
|
||||
default: /* some error occurred */
|
||||
return COS_DEAD;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int luaB_costatus (lua_State *L) {
|
||||
lua_State *co = getco(L);
|
||||
lua_pushstring(L, statname[auxstatus(L, co)]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_yieldable (lua_State *L) {
|
||||
lua_pushboolean(L, lua_isyieldable(L));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_corunning (lua_State *L) {
|
||||
int ismain = lua_pushthread(L);
|
||||
lua_pushboolean(L, ismain);
|
||||
return 2;
|
||||
}
|
||||
|
||||
|
||||
static int luaB_kill (lua_State *L) {
|
||||
lua_State *co = getco(L);
|
||||
int status = auxstatus(L, co);
|
||||
switch (status) {
|
||||
case COS_DEAD: case COS_YIELD: {
|
||||
status = lua_resetthread(co);
|
||||
if (status == LUA_OK) {
|
||||
lua_pushboolean(L, 1);
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
lua_pushboolean(L, 0);
|
||||
lua_xmove(co, L, 1); /* copy error message */
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
default: /* normal or running coroutine */
|
||||
return luaL_error(L, "cannot kill a %s coroutine", statname[status]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static const luaL_Reg co_funcs[] = {
|
||||
{"create", luaB_cocreate},
|
||||
{"resume", luaB_coresume},
|
||||
{"running", luaB_corunning},
|
||||
{"status", luaB_costatus},
|
||||
{"wrap", luaB_cowrap},
|
||||
{"yield", luaB_yield},
|
||||
{"isyieldable", luaB_yieldable},
|
||||
{"kill", luaB_kill},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
|
||||
LUAMOD_API int luaopen_coroutine (lua_State *L) {
|
||||
luaL_newlib(L, co_funcs);
|
||||
return 1;
|
||||
}
|
||||
|
BIN
source/lua/lcorolib.o
Normal file
BIN
source/lua/lcorolib.o
Normal file
Binary file not shown.
55
source/lua/lctype.c
Normal file
55
source/lua/lctype.c
Normal file
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
** $Id: lctype.c $
|
||||
** 'ctype' functions for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#define lctype_c
|
||||
#define LUA_CORE
|
||||
|
||||
#include "lprefix.h"
|
||||
|
||||
|
||||
#include "lctype.h"
|
||||
|
||||
#if !LUA_USE_CTYPE /* { */
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = {
|
||||
0x00, /* EOZ */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0. */
|
||||
0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 1. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x0c, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, /* 2. */
|
||||
0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
||||
0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, 0x16, /* 3. */
|
||||
0x16, 0x16, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
|
||||
0x04, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x05, /* 4. */
|
||||
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
|
||||
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, /* 5. */
|
||||
0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x05,
|
||||
0x04, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x05, /* 6. */
|
||||
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
|
||||
0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, /* 7. */
|
||||
0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 8. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 9. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* a. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* b. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* c. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* d. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* e. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* f. */
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
#endif /* } */
|
95
source/lua/lctype.h
Normal file
95
source/lua/lctype.h
Normal file
|
@ -0,0 +1,95 @@
|
|||
/*
|
||||
** $Id: lctype.h $
|
||||
** 'ctype' functions for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#ifndef lctype_h
|
||||
#define lctype_h
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
|
||||
/*
|
||||
** WARNING: the functions defined here do not necessarily correspond
|
||||
** to the similar functions in the standard C ctype.h. They are
|
||||
** optimized for the specific needs of Lua
|
||||
*/
|
||||
|
||||
#if !defined(LUA_USE_CTYPE)
|
||||
|
||||
#if 'A' == 65 && '0' == 48
|
||||
/* ASCII case: can use its own tables; faster and fixed */
|
||||
#define LUA_USE_CTYPE 0
|
||||
#else
|
||||
/* must use standard C ctype */
|
||||
#define LUA_USE_CTYPE 1
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#if !LUA_USE_CTYPE /* { */
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#include "llimits.h"
|
||||
|
||||
|
||||
#define ALPHABIT 0
|
||||
#define DIGITBIT 1
|
||||
#define PRINTBIT 2
|
||||
#define SPACEBIT 3
|
||||
#define XDIGITBIT 4
|
||||
|
||||
|
||||
#define MASK(B) (1 << (B))
|
||||
|
||||
|
||||
/*
|
||||
** add 1 to char to allow index -1 (EOZ)
|
||||
*/
|
||||
#define testprop(c,p) (luai_ctype_[(c)+1] & (p))
|
||||
|
||||
/*
|
||||
** 'lalpha' (Lua alphabetic) and 'lalnum' (Lua alphanumeric) both include '_'
|
||||
*/
|
||||
#define lislalpha(c) testprop(c, MASK(ALPHABIT))
|
||||
#define lislalnum(c) testprop(c, (MASK(ALPHABIT) | MASK(DIGITBIT)))
|
||||
#define lisdigit(c) testprop(c, MASK(DIGITBIT))
|
||||
#define lisspace(c) testprop(c, MASK(SPACEBIT))
|
||||
#define lisprint(c) testprop(c, MASK(PRINTBIT))
|
||||
#define lisxdigit(c) testprop(c, MASK(XDIGITBIT))
|
||||
|
||||
/*
|
||||
** this 'ltolower' only works for alphabetic characters
|
||||
*/
|
||||
#define ltolower(c) ((c) | ('A' ^ 'a'))
|
||||
|
||||
|
||||
/* two more entries for 0 and -1 (EOZ) */
|
||||
LUAI_DDEC(const lu_byte luai_ctype_[UCHAR_MAX + 2];)
|
||||
|
||||
|
||||
#else /* }{ */
|
||||
|
||||
/*
|
||||
** use standard C ctypes
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
#define lislalpha(c) (isalpha(c) || (c) == '_')
|
||||
#define lislalnum(c) (isalnum(c) || (c) == '_')
|
||||
#define lisdigit(c) (isdigit(c))
|
||||
#define lisspace(c) (isspace(c))
|
||||
#define lisprint(c) (isprint(c))
|
||||
#define lisxdigit(c) (isxdigit(c))
|
||||
|
||||
#define ltolower(c) (tolower(c))
|
||||
|
||||
#endif /* } */
|
||||
|
||||
#endif
|
||||
|
BIN
source/lua/lctype.o
Normal file
BIN
source/lua/lctype.o
Normal file
Binary file not shown.
464
source/lua/ldblib.c
Normal file
464
source/lua/ldblib.c
Normal file
|
@ -0,0 +1,464 @@
|
|||
/*
|
||||
** $Id: ldblib.c $
|
||||
** Interface from Lua to its debug API
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#define ldblib_c
|
||||
#define LUA_LIB
|
||||
|
||||
#include "lprefix.h"
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
#include "lauxlib.h"
|
||||
#include "lualib.h"
|
||||
|
||||
|
||||
/*
|
||||
** The hook table at registry[&HOOKKEY] maps threads to their current
|
||||
** hook function. (We only need the unique address of 'HOOKKEY'.)
|
||||
*/
|
||||
static const int HOOKKEY = 0;
|
||||
|
||||
|
||||
/*
|
||||
** If L1 != L, L1 can be in any state, and therefore there are no
|
||||
** guarantees about its stack space; any push in L1 must be
|
||||
** checked.
|
||||
*/
|
||||
static void checkstack (lua_State *L, lua_State *L1, int n) {
|
||||
if (L != L1 && !lua_checkstack(L1, n))
|
||||
luaL_error(L, "stack overflow");
|
||||
}
|
||||
|
||||
|
||||
static int db_getregistry (lua_State *L) {
|
||||
lua_pushvalue(L, LUA_REGISTRYINDEX);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int db_getmetatable (lua_State *L) {
|
||||
luaL_checkany(L, 1);
|
||||
if (!lua_getmetatable(L, 1)) {
|
||||
lua_pushnil(L); /* no metatable */
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int db_setmetatable (lua_State *L) {
|
||||
int t = lua_type(L, 2);
|
||||
luaL_argexpected(L, t == LUA_TNIL || t == LUA_TTABLE, 2, "nil or table");
|
||||
lua_settop(L, 2);
|
||||
lua_setmetatable(L, 1);
|
||||
return 1; /* return 1st argument */
|
||||
}
|
||||
|
||||
|
||||
static int db_getuservalue (lua_State *L) {
|
||||
int n = (int)luaL_optinteger(L, 2, 1);
|
||||
if (lua_type(L, 1) != LUA_TUSERDATA)
|
||||
lua_pushnil(L);
|
||||
else if (lua_getiuservalue(L, 1, n) != LUA_TNONE) {
|
||||
lua_pushboolean(L, 1);
|
||||
return 2;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int db_setuservalue (lua_State *L) {
|
||||
int n = (int)luaL_optinteger(L, 3, 1);
|
||||
luaL_checktype(L, 1, LUA_TUSERDATA);
|
||||
luaL_checkany(L, 2);
|
||||
lua_settop(L, 2);
|
||||
if (!lua_setiuservalue(L, 1, n))
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Auxiliary function used by several library functions: check for
|
||||
** an optional thread as function's first argument and set 'arg' with
|
||||
** 1 if this argument is present (so that functions can skip it to
|
||||
** access their other arguments)
|
||||
*/
|
||||
static lua_State *getthread (lua_State *L, int *arg) {
|
||||
if (lua_isthread(L, 1)) {
|
||||
*arg = 1;
|
||||
return lua_tothread(L, 1);
|
||||
}
|
||||
else {
|
||||
*arg = 0;
|
||||
return L; /* function will operate over current thread */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Variations of 'lua_settable', used by 'db_getinfo' to put results
|
||||
** from 'lua_getinfo' into result table. Key is always a string;
|
||||
** value can be a string, an int, or a boolean.
|
||||
*/
|
||||
static void settabss (lua_State *L, const char *k, const char *v) {
|
||||
lua_pushstring(L, v);
|
||||
lua_setfield(L, -2, k);
|
||||
}
|
||||
|
||||
static void settabsi (lua_State *L, const char *k, int v) {
|
||||
lua_pushinteger(L, v);
|
||||
lua_setfield(L, -2, k);
|
||||
}
|
||||
|
||||
static void settabsb (lua_State *L, const char *k, int v) {
|
||||
lua_pushboolean(L, v);
|
||||
lua_setfield(L, -2, k);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** In function 'db_getinfo', the call to 'lua_getinfo' may push
|
||||
** results on the stack; later it creates the result table to put
|
||||
** these objects. Function 'treatstackoption' puts the result from
|
||||
** 'lua_getinfo' on top of the result table so that it can call
|
||||
** 'lua_setfield'.
|
||||
*/
|
||||
static void treatstackoption (lua_State *L, lua_State *L1, const char *fname) {
|
||||
if (L == L1)
|
||||
lua_rotate(L, -2, 1); /* exchange object and table */
|
||||
else
|
||||
lua_xmove(L1, L, 1); /* move object to the "main" stack */
|
||||
lua_setfield(L, -2, fname); /* put object into table */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Calls 'lua_getinfo' and collects all results in a new table.
|
||||
** L1 needs stack space for an optional input (function) plus
|
||||
** two optional outputs (function and line table) from function
|
||||
** 'lua_getinfo'.
|
||||
*/
|
||||
static int db_getinfo (lua_State *L) {
|
||||
lua_Debug ar;
|
||||
int arg;
|
||||
lua_State *L1 = getthread(L, &arg);
|
||||
const char *options = luaL_optstring(L, arg+2, "flnSrtu");
|
||||
checkstack(L, L1, 3);
|
||||
if (lua_isfunction(L, arg + 1)) { /* info about a function? */
|
||||
options = lua_pushfstring(L, ">%s", options); /* add '>' to 'options' */
|
||||
lua_pushvalue(L, arg + 1); /* move function to 'L1' stack */
|
||||
lua_xmove(L, L1, 1);
|
||||
}
|
||||
else { /* stack level */
|
||||
if (!lua_getstack(L1, (int)luaL_checkinteger(L, arg + 1), &ar)) {
|
||||
lua_pushnil(L); /* level out of range */
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (!lua_getinfo(L1, options, &ar))
|
||||
return luaL_argerror(L, arg+2, "invalid option");
|
||||
lua_newtable(L); /* table to collect results */
|
||||
if (strchr(options, 'S')) {
|
||||
settabss(L, "source", ar.source);
|
||||
settabss(L, "short_src", ar.short_src);
|
||||
settabsi(L, "linedefined", ar.linedefined);
|
||||
settabsi(L, "lastlinedefined", ar.lastlinedefined);
|
||||
settabss(L, "what", ar.what);
|
||||
}
|
||||
if (strchr(options, 'l'))
|
||||
settabsi(L, "currentline", ar.currentline);
|
||||
if (strchr(options, 'u')) {
|
||||
settabsi(L, "nups", ar.nups);
|
||||
settabsi(L, "nparams", ar.nparams);
|
||||
settabsb(L, "isvararg", ar.isvararg);
|
||||
}
|
||||
if (strchr(options, 'n')) {
|
||||
settabss(L, "name", ar.name);
|
||||
settabss(L, "namewhat", ar.namewhat);
|
||||
}
|
||||
if (strchr(options, 'r')) {
|
||||
settabsi(L, "ftransfer", ar.ftransfer);
|
||||
settabsi(L, "ntransfer", ar.ntransfer);
|
||||
}
|
||||
if (strchr(options, 't'))
|
||||
settabsb(L, "istailcall", ar.istailcall);
|
||||
if (strchr(options, 'L'))
|
||||
treatstackoption(L, L1, "activelines");
|
||||
if (strchr(options, 'f'))
|
||||
treatstackoption(L, L1, "func");
|
||||
return 1; /* return table */
|
||||
}
|
||||
|
||||
|
||||
static int db_getlocal (lua_State *L) {
|
||||
int arg;
|
||||
lua_State *L1 = getthread(L, &arg);
|
||||
lua_Debug ar;
|
||||
const char *name;
|
||||
int nvar = (int)luaL_checkinteger(L, arg + 2); /* local-variable index */
|
||||
if (lua_isfunction(L, arg + 1)) { /* function argument? */
|
||||
lua_pushvalue(L, arg + 1); /* push function */
|
||||
lua_pushstring(L, lua_getlocal(L, NULL, nvar)); /* push local name */
|
||||
return 1; /* return only name (there is no value) */
|
||||
}
|
||||
else { /* stack-level argument */
|
||||
int level = (int)luaL_checkinteger(L, arg + 1);
|
||||
if (!lua_getstack(L1, level, &ar)) /* out of range? */
|
||||
return luaL_argerror(L, arg+1, "level out of range");
|
||||
checkstack(L, L1, 1);
|
||||
name = lua_getlocal(L1, &ar, nvar);
|
||||
if (name) {
|
||||
lua_xmove(L1, L, 1); /* move local value */
|
||||
lua_pushstring(L, name); /* push name */
|
||||
lua_rotate(L, -2, 1); /* re-order */
|
||||
return 2;
|
||||
}
|
||||
else {
|
||||
lua_pushnil(L); /* no name (nor value) */
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int db_setlocal (lua_State *L) {
|
||||
int arg;
|
||||
const char *name;
|
||||
lua_State *L1 = getthread(L, &arg);
|
||||
lua_Debug ar;
|
||||
int level = (int)luaL_checkinteger(L, arg + 1);
|
||||
int nvar = (int)luaL_checkinteger(L, arg + 2);
|
||||
if (!lua_getstack(L1, level, &ar)) /* out of range? */
|
||||
return luaL_argerror(L, arg+1, "level out of range");
|
||||
luaL_checkany(L, arg+3);
|
||||
lua_settop(L, arg+3);
|
||||
checkstack(L, L1, 1);
|
||||
lua_xmove(L, L1, 1);
|
||||
name = lua_setlocal(L1, &ar, nvar);
|
||||
if (name == NULL)
|
||||
lua_pop(L1, 1); /* pop value (if not popped by 'lua_setlocal') */
|
||||
lua_pushstring(L, name);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** get (if 'get' is true) or set an upvalue from a closure
|
||||
*/
|
||||
static int auxupvalue (lua_State *L, int get) {
|
||||
const char *name;
|
||||
int n = (int)luaL_checkinteger(L, 2); /* upvalue index */
|
||||
luaL_checktype(L, 1, LUA_TFUNCTION); /* closure */
|
||||
name = get ? lua_getupvalue(L, 1, n) : lua_setupvalue(L, 1, n);
|
||||
if (name == NULL) return 0;
|
||||
lua_pushstring(L, name);
|
||||
lua_insert(L, -(get+1)); /* no-op if get is false */
|
||||
return get + 1;
|
||||
}
|
||||
|
||||
|
||||
static int db_getupvalue (lua_State *L) {
|
||||
return auxupvalue(L, 1);
|
||||
}
|
||||
|
||||
|
||||
static int db_setupvalue (lua_State *L) {
|
||||
luaL_checkany(L, 3);
|
||||
return auxupvalue(L, 0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Check whether a given upvalue from a given closure exists and
|
||||
** returns its index
|
||||
*/
|
||||
static int checkupval (lua_State *L, int argf, int argnup) {
|
||||
int nup = (int)luaL_checkinteger(L, argnup); /* upvalue index */
|
||||
luaL_checktype(L, argf, LUA_TFUNCTION); /* closure */
|
||||
luaL_argcheck(L, (lua_getupvalue(L, argf, nup) != NULL), argnup,
|
||||
"invalid upvalue index");
|
||||
return nup;
|
||||
}
|
||||
|
||||
|
||||
static int db_upvalueid (lua_State *L) {
|
||||
int n = checkupval(L, 1, 2);
|
||||
lua_pushlightuserdata(L, lua_upvalueid(L, 1, n));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static int db_upvaluejoin (lua_State *L) {
|
||||
int n1 = checkupval(L, 1, 2);
|
||||
int n2 = checkupval(L, 3, 4);
|
||||
luaL_argcheck(L, !lua_iscfunction(L, 1), 1, "Lua function expected");
|
||||
luaL_argcheck(L, !lua_iscfunction(L, 3), 3, "Lua function expected");
|
||||
lua_upvaluejoin(L, 1, n1, 3, n2);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Call hook function registered at hook table for the current
|
||||
** thread (if there is one)
|
||||
*/
|
||||
static void hookf (lua_State *L, lua_Debug *ar) {
|
||||
static const char *const hooknames[] =
|
||||
{"call", "return", "line", "count", "tail call"};
|
||||
lua_rawgetp(L, LUA_REGISTRYINDEX, &HOOKKEY);
|
||||
lua_pushthread(L);
|
||||
if (lua_rawget(L, -2) == LUA_TFUNCTION) { /* is there a hook function? */
|
||||
lua_pushstring(L, hooknames[(int)ar->event]); /* push event name */
|
||||
if (ar->currentline >= 0)
|
||||
lua_pushinteger(L, ar->currentline); /* push current line */
|
||||
else lua_pushnil(L);
|
||||
lua_assert(lua_getinfo(L, "lS", ar));
|
||||
lua_call(L, 2, 0); /* call hook function */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Convert a string mask (for 'sethook') into a bit mask
|
||||
*/
|
||||
static int makemask (const char *smask, int count) {
|
||||
int mask = 0;
|
||||
if (strchr(smask, 'c')) mask |= LUA_MASKCALL;
|
||||
if (strchr(smask, 'r')) mask |= LUA_MASKRET;
|
||||
if (strchr(smask, 'l')) mask |= LUA_MASKLINE;
|
||||
if (count > 0) mask |= LUA_MASKCOUNT;
|
||||
return mask;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Convert a bit mask (for 'gethook') into a string mask
|
||||
*/
|
||||
static char *unmakemask (int mask, char *smask) {
|
||||
int i = 0;
|
||||
if (mask & LUA_MASKCALL) smask[i++] = 'c';
|
||||
if (mask & LUA_MASKRET) smask[i++] = 'r';
|
||||
if (mask & LUA_MASKLINE) smask[i++] = 'l';
|
||||
smask[i] = '\0';
|
||||
return smask;
|
||||
}
|
||||
|
||||
|
||||
static int db_sethook (lua_State *L) {
|
||||
int arg, mask, count;
|
||||
lua_Hook func;
|
||||
lua_State *L1 = getthread(L, &arg);
|
||||
if (lua_isnoneornil(L, arg+1)) { /* no hook? */
|
||||
lua_settop(L, arg+1);
|
||||
func = NULL; mask = 0; count = 0; /* turn off hooks */
|
||||
}
|
||||
else {
|
||||
const char *smask = luaL_checkstring(L, arg+2);
|
||||
luaL_checktype(L, arg+1, LUA_TFUNCTION);
|
||||
count = (int)luaL_optinteger(L, arg + 3, 0);
|
||||
func = hookf; mask = makemask(smask, count);
|
||||
}
|
||||
if (lua_rawgetp(L, LUA_REGISTRYINDEX, &HOOKKEY) == LUA_TNIL) {
|
||||
lua_createtable(L, 0, 2); /* create a hook table */
|
||||
lua_pushvalue(L, -1);
|
||||
lua_rawsetp(L, LUA_REGISTRYINDEX, &HOOKKEY); /* set it in position */
|
||||
lua_pushstring(L, "k");
|
||||
lua_setfield(L, -2, "__mode"); /** hooktable.__mode = "k" */
|
||||
lua_pushvalue(L, -1);
|
||||
lua_setmetatable(L, -2); /* setmetatable(hooktable) = hooktable */
|
||||
}
|
||||
checkstack(L, L1, 1);
|
||||
lua_pushthread(L1); lua_xmove(L1, L, 1); /* key (thread) */
|
||||
lua_pushvalue(L, arg + 1); /* value (hook function) */
|
||||
lua_rawset(L, -3); /* hooktable[L1] = new Lua hook */
|
||||
lua_sethook(L1, func, mask, count);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int db_gethook (lua_State *L) {
|
||||
int arg;
|
||||
lua_State *L1 = getthread(L, &arg);
|
||||
char buff[5];
|
||||
int mask = lua_gethookmask(L1);
|
||||
lua_Hook hook = lua_gethook(L1);
|
||||
if (hook == NULL) /* no hook? */
|
||||
lua_pushnil(L);
|
||||
else if (hook != hookf) /* external hook? */
|
||||
lua_pushliteral(L, "external hook");
|
||||
else { /* hook table must exist */
|
||||
lua_rawgetp(L, LUA_REGISTRYINDEX, &HOOKKEY);
|
||||
checkstack(L, L1, 1);
|
||||
lua_pushthread(L1); lua_xmove(L1, L, 1);
|
||||
lua_rawget(L, -2); /* 1st result = hooktable[L1] */
|
||||
lua_remove(L, -2); /* remove hook table */
|
||||
}
|
||||
lua_pushstring(L, unmakemask(mask, buff)); /* 2nd result = mask */
|
||||
lua_pushinteger(L, lua_gethookcount(L1)); /* 3rd result = count */
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
static int db_debug (lua_State *L) {
|
||||
for (;;) {
|
||||
char buffer[250];
|
||||
lua_writestringerror("%s", "lua_debug> ");
|
||||
if (fgets(buffer, sizeof(buffer), stdin) == 0 ||
|
||||
strcmp(buffer, "cont\n") == 0)
|
||||
return 0;
|
||||
if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") ||
|
||||
lua_pcall(L, 0, 0, 0))
|
||||
lua_writestringerror("%s\n", lua_tostring(L, -1));
|
||||
lua_settop(L, 0); /* remove eventual returns */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int db_traceback (lua_State *L) {
|
||||
int arg;
|
||||
lua_State *L1 = getthread(L, &arg);
|
||||
const char *msg = lua_tostring(L, arg + 1);
|
||||
if (msg == NULL && !lua_isnoneornil(L, arg + 1)) /* non-string 'msg'? */
|
||||
lua_pushvalue(L, arg + 1); /* return it untouched */
|
||||
else {
|
||||
int level = (int)luaL_optinteger(L, arg + 2, (L == L1) ? 1 : 0);
|
||||
luaL_traceback(L, L1, msg, level);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
static const luaL_Reg dblib[] = {
|
||||
{"debug", db_debug},
|
||||
{"getuservalue", db_getuservalue},
|
||||
{"gethook", db_gethook},
|
||||
{"getinfo", db_getinfo},
|
||||
{"getlocal", db_getlocal},
|
||||
{"getregistry", db_getregistry},
|
||||
{"getmetatable", db_getmetatable},
|
||||
{"getupvalue", db_getupvalue},
|
||||
{"upvaluejoin", db_upvaluejoin},
|
||||
{"upvalueid", db_upvalueid},
|
||||
{"setuservalue", db_setuservalue},
|
||||
{"sethook", db_sethook},
|
||||
{"setlocal", db_setlocal},
|
||||
{"setmetatable", db_setmetatable},
|
||||
{"setupvalue", db_setupvalue},
|
||||
{"traceback", db_traceback},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
LUAMOD_API int luaopen_debug (lua_State *L) {
|
||||
luaL_newlib(L, dblib);
|
||||
return 1;
|
||||
}
|
||||
|
BIN
source/lua/ldblib.o
Normal file
BIN
source/lua/ldblib.o
Normal file
Binary file not shown.
844
source/lua/ldebug.c
Normal file
844
source/lua/ldebug.c
Normal file
|
@ -0,0 +1,844 @@
|
|||
/*
|
||||
** $Id: ldebug.c $
|
||||
** Debug Interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#define ldebug_c
|
||||
#define LUA_CORE
|
||||
|
||||
#include "lprefix.h"
|
||||
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
#include "lapi.h"
|
||||
#include "lcode.h"
|
||||
#include "ldebug.h"
|
||||
#include "ldo.h"
|
||||
#include "lfunc.h"
|
||||
#include "lobject.h"
|
||||
#include "lopcodes.h"
|
||||
#include "lstate.h"
|
||||
#include "lstring.h"
|
||||
#include "ltable.h"
|
||||
#include "ltm.h"
|
||||
#include "lvm.h"
|
||||
|
||||
|
||||
|
||||
#define noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL)
|
||||
|
||||
|
||||
/* Active Lua function (given call info) */
|
||||
#define ci_func(ci) (clLvalue(s2v((ci)->func)))
|
||||
|
||||
|
||||
static const char *funcnamefromcode (lua_State *L, CallInfo *ci,
|
||||
const char **name);
|
||||
|
||||
|
||||
static int currentpc (CallInfo *ci) {
|
||||
lua_assert(isLua(ci));
|
||||
return pcRel(ci->u.l.savedpc, ci_func(ci)->p);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Get a "base line" to find the line corresponding to an instruction.
|
||||
** For that, search the array of absolute line info for the largest saved
|
||||
** instruction smaller or equal to the wanted instruction. A special
|
||||
** case is when there is no absolute info or the instruction is before
|
||||
** the first absolute one.
|
||||
*/
|
||||
static int getbaseline (const Proto *f, int pc, int *basepc) {
|
||||
if (f->sizeabslineinfo == 0 || pc < f->abslineinfo[0].pc) {
|
||||
*basepc = -1; /* start from the beginning */
|
||||
return f->linedefined;
|
||||
}
|
||||
else {
|
||||
unsigned int i;
|
||||
if (pc >= f->abslineinfo[f->sizeabslineinfo - 1].pc)
|
||||
i = f->sizeabslineinfo - 1; /* instruction is after last saved one */
|
||||
else { /* binary search */
|
||||
unsigned int j = f->sizeabslineinfo - 1; /* pc < anchorlines[j] */
|
||||
i = 0; /* abslineinfo[i] <= pc */
|
||||
while (i < j - 1) {
|
||||
unsigned int m = (j + i) / 2;
|
||||
if (pc >= f->abslineinfo[m].pc)
|
||||
i = m;
|
||||
else
|
||||
j = m;
|
||||
}
|
||||
}
|
||||
*basepc = f->abslineinfo[i].pc;
|
||||
return f->abslineinfo[i].line;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Get the line corresponding to instruction 'pc' in function 'f';
|
||||
** first gets a base line and from there does the increments until
|
||||
** the desired instruction.
|
||||
*/
|
||||
int luaG_getfuncline (const Proto *f, int pc) {
|
||||
if (f->lineinfo == NULL) /* no debug information? */
|
||||
return -1;
|
||||
else {
|
||||
int basepc;
|
||||
int baseline = getbaseline(f, pc, &basepc);
|
||||
while (basepc++ < pc) { /* walk until given instruction */
|
||||
lua_assert(f->lineinfo[basepc] != ABSLINEINFO);
|
||||
baseline += f->lineinfo[basepc]; /* correct line */
|
||||
}
|
||||
return baseline;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int currentline (CallInfo *ci) {
|
||||
return luaG_getfuncline(ci_func(ci)->p, currentpc(ci));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** This function can be called asynchronously (e.g. during a signal),
|
||||
** under "reasonable" assumptions. A new 'ci' is completely linked
|
||||
** in the list before it becomes part of the "active" list, and
|
||||
** we assume that pointers are atomic (see comment in next function).
|
||||
** (If we traverse one more item, there is no problem. If we traverse
|
||||
** one less item, the worst that can happen is that the signal will
|
||||
** not interrupt the script.)
|
||||
*/
|
||||
static void settraps (CallInfo *ci) {
|
||||
for (; ci != NULL; ci = ci->previous)
|
||||
if (isLua(ci))
|
||||
ci->u.l.trap = 1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** This function can be called asynchronously (e.g. during a signal),
|
||||
** under "reasonable" assumptions.
|
||||
** Fields 'oldpc', 'basehookcount', and 'hookcount' (set by
|
||||
** 'resethookcount') are for debug only, and it is no problem if they
|
||||
** get arbitrary values (causes at most one wrong hook call). 'hookmask'
|
||||
** is an atomic value. We assume that pointers are atomic too (e.g., gcc
|
||||
** ensures that for all platforms where it runs). Moreover, 'hook' is
|
||||
** always checked before being called (see 'luaD_hook').
|
||||
*/
|
||||
LUA_API void lua_sethook (lua_State *L, lua_Hook func, int mask, int count) {
|
||||
if (func == NULL || mask == 0) { /* turn off hooks? */
|
||||
mask = 0;
|
||||
func = NULL;
|
||||
}
|
||||
if (isLua(L->ci))
|
||||
L->oldpc = L->ci->u.l.savedpc;
|
||||
L->hook = func;
|
||||
L->basehookcount = count;
|
||||
resethookcount(L);
|
||||
L->hookmask = cast_byte(mask);
|
||||
if (mask)
|
||||
settraps(L->ci); /* to trace inside 'luaV_execute' */
|
||||
}
|
||||
|
||||
|
||||
LUA_API lua_Hook lua_gethook (lua_State *L) {
|
||||
return L->hook;
|
||||
}
|
||||
|
||||
|
||||
LUA_API int lua_gethookmask (lua_State *L) {
|
||||
return L->hookmask;
|
||||
}
|
||||
|
||||
|
||||
LUA_API int lua_gethookcount (lua_State *L) {
|
||||
return L->basehookcount;
|
||||
}
|
||||
|
||||
|
||||
LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) {
|
||||
int status;
|
||||
CallInfo *ci;
|
||||
if (level < 0) return 0; /* invalid (negative) level */
|
||||
lua_lock(L);
|
||||
for (ci = L->ci; level > 0 && ci != &L->base_ci; ci = ci->previous)
|
||||
level--;
|
||||
if (level == 0 && ci != &L->base_ci) { /* level found? */
|
||||
status = 1;
|
||||
ar->i_ci = ci;
|
||||
}
|
||||
else status = 0; /* no such level */
|
||||
lua_unlock(L);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
static const char *upvalname (const Proto *p, int uv) {
|
||||
TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name);
|
||||
if (s == NULL) return "?";
|
||||
else return getstr(s);
|
||||
}
|
||||
|
||||
|
||||
static const char *findvararg (CallInfo *ci, int n, StkId *pos) {
|
||||
if (clLvalue(s2v(ci->func))->p->is_vararg) {
|
||||
int nextra = ci->u.l.nextraargs;
|
||||
if (n <= nextra) {
|
||||
*pos = ci->func - nextra + (n - 1);
|
||||
return "(vararg)"; /* generic name for any vararg */
|
||||
}
|
||||
}
|
||||
return NULL; /* no such vararg */
|
||||
}
|
||||
|
||||
|
||||
const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos) {
|
||||
StkId base = ci->func + 1;
|
||||
const char *name = NULL;
|
||||
if (isLua(ci)) {
|
||||
if (n < 0) /* access to vararg values? */
|
||||
return findvararg(ci, -n, pos);
|
||||
else
|
||||
name = luaF_getlocalname(ci_func(ci)->p, n, currentpc(ci));
|
||||
}
|
||||
if (name == NULL) { /* no 'standard' name? */
|
||||
StkId limit = (ci == L->ci) ? L->top : ci->next->func;
|
||||
if (limit - base >= n && n > 0) { /* is 'n' inside 'ci' stack? */
|
||||
/* generic name for any valid slot */
|
||||
name = isLua(ci) ? "(temporary)" : "(C temporary)";
|
||||
}
|
||||
else
|
||||
return NULL; /* no name */
|
||||
}
|
||||
if (pos)
|
||||
*pos = base + (n - 1);
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) {
|
||||
const char *name;
|
||||
lua_lock(L);
|
||||
if (ar == NULL) { /* information about non-active function? */
|
||||
if (!isLfunction(s2v(L->top - 1))) /* not a Lua function? */
|
||||
name = NULL;
|
||||
else /* consider live variables at function start (parameters) */
|
||||
name = luaF_getlocalname(clLvalue(s2v(L->top - 1))->p, n, 0);
|
||||
}
|
||||
else { /* active function; get information through 'ar' */
|
||||
StkId pos = NULL; /* to avoid warnings */
|
||||
name = luaG_findlocal(L, ar->i_ci, n, &pos);
|
||||
if (name) {
|
||||
setobjs2s(L, L->top, pos);
|
||||
api_incr_top(L);
|
||||
}
|
||||
}
|
||||
lua_unlock(L);
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) {
|
||||
StkId pos = NULL; /* to avoid warnings */
|
||||
const char *name;
|
||||
lua_lock(L);
|
||||
name = luaG_findlocal(L, ar->i_ci, n, &pos);
|
||||
if (name) {
|
||||
setobjs2s(L, pos, L->top - 1);
|
||||
L->top--; /* pop value */
|
||||
}
|
||||
lua_unlock(L);
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
static void funcinfo (lua_Debug *ar, Closure *cl) {
|
||||
if (noLuaClosure(cl)) {
|
||||
ar->source = "=[C]";
|
||||
ar->linedefined = -1;
|
||||
ar->lastlinedefined = -1;
|
||||
ar->what = "C";
|
||||
}
|
||||
else {
|
||||
const Proto *p = cl->l.p;
|
||||
ar->source = p->source ? getstr(p->source) : "=?";
|
||||
ar->linedefined = p->linedefined;
|
||||
ar->lastlinedefined = p->lastlinedefined;
|
||||
ar->what = (ar->linedefined == 0) ? "main" : "Lua";
|
||||
}
|
||||
luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);
|
||||
}
|
||||
|
||||
|
||||
static int nextline (const Proto *p, int currentline, int pc) {
|
||||
if (p->lineinfo[pc] != ABSLINEINFO)
|
||||
return currentline + p->lineinfo[pc];
|
||||
else
|
||||
return luaG_getfuncline(p, pc);
|
||||
}
|
||||
|
||||
|
||||
static void collectvalidlines (lua_State *L, Closure *f) {
|
||||
if (noLuaClosure(f)) {
|
||||
setnilvalue(s2v(L->top));
|
||||
api_incr_top(L);
|
||||
}
|
||||
else {
|
||||
int i;
|
||||
TValue v;
|
||||
const Proto *p = f->l.p;
|
||||
int currentline = p->linedefined;
|
||||
Table *t = luaH_new(L); /* new table to store active lines */
|
||||
sethvalue2s(L, L->top, t); /* push it on stack */
|
||||
api_incr_top(L);
|
||||
setbvalue(&v, 1); /* boolean 'true' to be the value of all indices */
|
||||
for (i = 0; i < p->sizelineinfo; i++) { /* for all lines with code */
|
||||
currentline = nextline(p, currentline, i);
|
||||
luaH_setint(L, t, currentline, &v); /* table[line] = true */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static const char *getfuncname (lua_State *L, CallInfo *ci, const char **name) {
|
||||
if (ci == NULL) /* no 'ci'? */
|
||||
return NULL; /* no info */
|
||||
else if (ci->callstatus & CIST_FIN) { /* is this a finalizer? */
|
||||
*name = "__gc";
|
||||
return "metamethod"; /* report it as such */
|
||||
}
|
||||
/* calling function is a known Lua function? */
|
||||
else if (!(ci->callstatus & CIST_TAIL) && isLua(ci->previous))
|
||||
return funcnamefromcode(L, ci->previous, name);
|
||||
else return NULL; /* no way to find a name */
|
||||
}
|
||||
|
||||
|
||||
static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar,
|
||||
Closure *f, CallInfo *ci) {
|
||||
int status = 1;
|
||||
for (; *what; what++) {
|
||||
switch (*what) {
|
||||
case 'S': {
|
||||
funcinfo(ar, f);
|
||||
break;
|
||||
}
|
||||
case 'l': {
|
||||
ar->currentline = (ci && isLua(ci)) ? currentline(ci) : -1;
|
||||
break;
|
||||
}
|
||||
case 'u': {
|
||||
ar->nups = (f == NULL) ? 0 : f->c.nupvalues;
|
||||
if (noLuaClosure(f)) {
|
||||
ar->isvararg = 1;
|
||||
ar->nparams = 0;
|
||||
}
|
||||
else {
|
||||
ar->isvararg = f->l.p->is_vararg;
|
||||
ar->nparams = f->l.p->numparams;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 't': {
|
||||
ar->istailcall = (ci) ? ci->callstatus & CIST_TAIL : 0;
|
||||
break;
|
||||
}
|
||||
case 'n': {
|
||||
ar->namewhat = getfuncname(L, ci, &ar->name);
|
||||
if (ar->namewhat == NULL) {
|
||||
ar->namewhat = ""; /* not found */
|
||||
ar->name = NULL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'r': {
|
||||
if (ci == NULL || !(ci->callstatus & CIST_TRAN))
|
||||
ar->ftransfer = ar->ntransfer = 0;
|
||||
else {
|
||||
ar->ftransfer = ci->u2.transferinfo.ftransfer;
|
||||
ar->ntransfer = ci->u2.transferinfo.ntransfer;
|
||||
}
|
||||
}
|
||||
case 'L':
|
||||
case 'f': /* handled by lua_getinfo */
|
||||
break;
|
||||
default: status = 0; /* invalid option */
|
||||
}
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
|
||||
int status;
|
||||
Closure *cl;
|
||||
CallInfo *ci;
|
||||
TValue *func;
|
||||
lua_lock(L);
|
||||
if (*what == '>') {
|
||||
ci = NULL;
|
||||
func = s2v(L->top - 1);
|
||||
api_check(L, ttisfunction(func), "function expected");
|
||||
what++; /* skip the '>' */
|
||||
L->top--; /* pop function */
|
||||
}
|
||||
else {
|
||||
ci = ar->i_ci;
|
||||
func = s2v(ci->func);
|
||||
lua_assert(ttisfunction(func));
|
||||
}
|
||||
cl = ttisclosure(func) ? clvalue(func) : NULL;
|
||||
status = auxgetinfo(L, what, ar, cl, ci);
|
||||
if (strchr(what, 'f')) {
|
||||
setobj2s(L, L->top, func);
|
||||
api_incr_top(L);
|
||||
}
|
||||
if (strchr(what, 'L'))
|
||||
collectvalidlines(L, cl);
|
||||
lua_unlock(L);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** {======================================================
|
||||
** Symbolic Execution
|
||||
** =======================================================
|
||||
*/
|
||||
|
||||
static const char *getobjname (const Proto *p, int lastpc, int reg,
|
||||
const char **name);
|
||||
|
||||
|
||||
/*
|
||||
** Find a "name" for the constant 'c'.
|
||||
*/
|
||||
static void kname (const Proto *p, int c, const char **name) {
|
||||
TValue *kvalue = &p->k[c];
|
||||
*name = (ttisstring(kvalue)) ? svalue(kvalue) : "?";
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Find a "name" for the register 'c'.
|
||||
*/
|
||||
static void rname (const Proto *p, int pc, int c, const char **name) {
|
||||
const char *what = getobjname(p, pc, c, name); /* search for 'c' */
|
||||
if (!(what && *what == 'c')) /* did not find a constant name? */
|
||||
*name = "?";
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Find a "name" for a 'C' value in an RK instruction.
|
||||
*/
|
||||
static void rkname (const Proto *p, int pc, Instruction i, const char **name) {
|
||||
int c = GETARG_C(i); /* key index */
|
||||
if (GETARG_k(i)) /* is 'c' a constant? */
|
||||
kname(p, c, name);
|
||||
else /* 'c' is a register */
|
||||
rname(p, pc, c, name);
|
||||
}
|
||||
|
||||
|
||||
static int filterpc (int pc, int jmptarget) {
|
||||
if (pc < jmptarget) /* is code conditional (inside a jump)? */
|
||||
return -1; /* cannot know who sets that register */
|
||||
else return pc; /* current position sets that register */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** try to find last instruction before 'lastpc' that modified register 'reg'
|
||||
*/
|
||||
static int findsetreg (const Proto *p, int lastpc, int reg) {
|
||||
int pc;
|
||||
int setreg = -1; /* keep last instruction that changed 'reg' */
|
||||
int jmptarget = 0; /* any code before this address is conditional */
|
||||
for (pc = 0; pc < lastpc; pc++) {
|
||||
Instruction i = p->code[pc];
|
||||
OpCode op = GET_OPCODE(i);
|
||||
int a = GETARG_A(i);
|
||||
int change; /* true if current instruction changed 'reg' */
|
||||
switch (op) {
|
||||
case OP_LOADNIL: { /* set registers from 'a' to 'a+b' */
|
||||
int b = GETARG_B(i);
|
||||
change = (a <= reg && reg <= a + b);
|
||||
break;
|
||||
}
|
||||
case OP_TFORCALL: { /* affect all regs above its base */
|
||||
change = (reg >= a + 2);
|
||||
break;
|
||||
}
|
||||
case OP_CALL:
|
||||
case OP_TAILCALL: { /* affect all registers above base */
|
||||
change = (reg >= a);
|
||||
break;
|
||||
}
|
||||
case OP_JMP: { /* doesn't change registers, but changes 'jmptarget' */
|
||||
int b = GETARG_sJ(i);
|
||||
int dest = pc + 1 + b;
|
||||
/* jump does not skip 'lastpc' and is larger than current one? */
|
||||
if (dest <= lastpc && dest > jmptarget)
|
||||
jmptarget = dest; /* update 'jmptarget' */
|
||||
change = 0;
|
||||
break;
|
||||
}
|
||||
default: /* any instruction that sets A */
|
||||
change = (testAMode(op) && reg == a);
|
||||
break;
|
||||
}
|
||||
if (change)
|
||||
setreg = filterpc(pc, jmptarget);
|
||||
}
|
||||
return setreg;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Check whether table being indexed by instruction 'i' is the
|
||||
** environment '_ENV'
|
||||
*/
|
||||
static const char *gxf (const Proto *p, int pc, Instruction i, int isup) {
|
||||
int t = GETARG_B(i); /* table index */
|
||||
const char *name; /* name of indexed variable */
|
||||
if (isup) /* is an upvalue? */
|
||||
name = upvalname(p, t);
|
||||
else
|
||||
getobjname(p, pc, t, &name);
|
||||
return (name && strcmp(name, LUA_ENV) == 0) ? "global" : "field";
|
||||
}
|
||||
|
||||
|
||||
const char *getobjname (const Proto *p, int lastpc, int reg,
|
||||
const char **name) {
|
||||
int pc;
|
||||
*name = luaF_getlocalname(p, reg + 1, lastpc);
|
||||
if (*name) /* is a local? */
|
||||
return "local";
|
||||
/* else try symbolic execution */
|
||||
pc = findsetreg(p, lastpc, reg);
|
||||
if (pc != -1) { /* could find instruction? */
|
||||
Instruction i = p->code[pc];
|
||||
OpCode op = GET_OPCODE(i);
|
||||
switch (op) {
|
||||
case OP_MOVE: {
|
||||
int b = GETARG_B(i); /* move from 'b' to 'a' */
|
||||
if (b < GETARG_A(i))
|
||||
return getobjname(p, pc, b, name); /* get name for 'b' */
|
||||
break;
|
||||
}
|
||||
case OP_GETTABUP: {
|
||||
int k = GETARG_C(i); /* key index */
|
||||
kname(p, k, name);
|
||||
return gxf(p, pc, i, 1);
|
||||
}
|
||||
case OP_GETTABLE: {
|
||||
int k = GETARG_C(i); /* key index */
|
||||
rname(p, pc, k, name);
|
||||
return gxf(p, pc, i, 0);
|
||||
}
|
||||
case OP_GETI: {
|
||||
*name = "integer index";
|
||||
return "field";
|
||||
}
|
||||
case OP_GETFIELD: {
|
||||
int k = GETARG_C(i); /* key index */
|
||||
kname(p, k, name);
|
||||
return gxf(p, pc, i, 0);
|
||||
}
|
||||
case OP_GETUPVAL: {
|
||||
*name = upvalname(p, GETARG_B(i));
|
||||
return "upvalue";
|
||||
}
|
||||
case OP_LOADK:
|
||||
case OP_LOADKX: {
|
||||
int b = (op == OP_LOADK) ? GETARG_Bx(i)
|
||||
: GETARG_Ax(p->code[pc + 1]);
|
||||
if (ttisstring(&p->k[b])) {
|
||||
*name = svalue(&p->k[b]);
|
||||
return "constant";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case OP_SELF: {
|
||||
rkname(p, pc, i, name);
|
||||
return "method";
|
||||
}
|
||||
default: break; /* go through to return NULL */
|
||||
}
|
||||
}
|
||||
return NULL; /* could not find reasonable name */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Try to find a name for a function based on the code that called it.
|
||||
** (Only works when function was called by a Lua function.)
|
||||
** Returns what the name is (e.g., "for iterator", "method",
|
||||
** "metamethod") and sets '*name' to point to the name.
|
||||
*/
|
||||
static const char *funcnamefromcode (lua_State *L, CallInfo *ci,
|
||||
const char **name) {
|
||||
TMS tm = (TMS)0; /* (initial value avoids warnings) */
|
||||
const Proto *p = ci_func(ci)->p; /* calling function */
|
||||
int pc = currentpc(ci); /* calling instruction index */
|
||||
Instruction i = p->code[pc]; /* calling instruction */
|
||||
if (ci->callstatus & CIST_HOOKED) { /* was it called inside a hook? */
|
||||
*name = "?";
|
||||
return "hook";
|
||||
}
|
||||
switch (GET_OPCODE(i)) {
|
||||
case OP_CALL:
|
||||
case OP_TAILCALL:
|
||||
return getobjname(p, pc, GETARG_A(i), name); /* get function name */
|
||||
case OP_TFORCALL: { /* for iterator */
|
||||
*name = "for iterator";
|
||||
return "for iterator";
|
||||
}
|
||||
/* other instructions can do calls through metamethods */
|
||||
case OP_SELF: case OP_GETTABUP: case OP_GETTABLE:
|
||||
case OP_GETI: case OP_GETFIELD:
|
||||
tm = TM_INDEX;
|
||||
break;
|
||||
case OP_SETTABUP: case OP_SETTABLE: case OP_SETI: case OP_SETFIELD:
|
||||
tm = TM_NEWINDEX;
|
||||
break;
|
||||
case OP_ADDI: case OP_SUBI: case OP_MULI: case OP_MODI:
|
||||
case OP_POWI: case OP_DIVI: case OP_IDIVI: {
|
||||
int offset = GET_OPCODE(i) - OP_ADDI; /* ORDER OP */
|
||||
tm = cast(TMS, offset + TM_ADD); /* ORDER TM */
|
||||
break;
|
||||
}
|
||||
case OP_ADDK: case OP_SUBK: case OP_MULK: case OP_MODK:
|
||||
case OP_POWK: case OP_DIVK: case OP_IDIVK:
|
||||
case OP_BANDK: case OP_BORK: case OP_BXORK: {
|
||||
int offset = GET_OPCODE(i) - OP_ADDK; /* ORDER OP */
|
||||
tm = cast(TMS, offset + TM_ADD); /* ORDER TM */
|
||||
break;
|
||||
}
|
||||
case OP_ADD: case OP_SUB: case OP_MUL: case OP_MOD:
|
||||
case OP_POW: case OP_DIV: case OP_IDIV: case OP_BAND:
|
||||
case OP_BOR: case OP_BXOR: case OP_SHL: case OP_SHR: {
|
||||
int offset = GET_OPCODE(i) - OP_ADD; /* ORDER OP */
|
||||
tm = cast(TMS, offset + TM_ADD); /* ORDER TM */
|
||||
break;
|
||||
}
|
||||
case OP_UNM: tm = TM_UNM; break;
|
||||
case OP_BNOT: tm = TM_BNOT; break;
|
||||
case OP_LEN: tm = TM_LEN; break;
|
||||
case OP_CONCAT: tm = TM_CONCAT; break;
|
||||
case OP_EQ: tm = TM_EQ; break;
|
||||
case OP_LT: case OP_LE: case OP_LTI: case OP_LEI:
|
||||
*name = "order"; /* '<=' can call '__lt', etc. */
|
||||
return "metamethod";
|
||||
case OP_SHRI: case OP_SHLI:
|
||||
*name = "shift";
|
||||
return "metamethod";
|
||||
default:
|
||||
return NULL; /* cannot find a reasonable name */
|
||||
}
|
||||
*name = getstr(G(L)->tmname[tm]) + 2;
|
||||
return "metamethod";
|
||||
}
|
||||
|
||||
/* }====================================================== */
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** The subtraction of two potentially unrelated pointers is
|
||||
** not ISO C, but it should not crash a program; the subsequent
|
||||
** checks are ISO C and ensure a correct result.
|
||||
*/
|
||||
static int isinstack (CallInfo *ci, const TValue *o) {
|
||||
StkId base = ci->func + 1;
|
||||
ptrdiff_t i = cast(StkId, o) - base;
|
||||
return (0 <= i && i < (ci->top - base) && s2v(base + i) == o);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Checks whether value 'o' came from an upvalue. (That can only happen
|
||||
** with instructions OP_GETTABUP/OP_SETTABUP, which operate directly on
|
||||
** upvalues.)
|
||||
*/
|
||||
static const char *getupvalname (CallInfo *ci, const TValue *o,
|
||||
const char **name) {
|
||||
LClosure *c = ci_func(ci);
|
||||
int i;
|
||||
for (i = 0; i < c->nupvalues; i++) {
|
||||
if (c->upvals[i]->v == o) {
|
||||
*name = upvalname(c->p, i);
|
||||
return "upvalue";
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static const char *varinfo (lua_State *L, const TValue *o) {
|
||||
const char *name = NULL; /* to avoid warnings */
|
||||
CallInfo *ci = L->ci;
|
||||
const char *kind = NULL;
|
||||
if (isLua(ci)) {
|
||||
kind = getupvalname(ci, o, &name); /* check whether 'o' is an upvalue */
|
||||
if (!kind && isinstack(ci, o)) /* no? try a register */
|
||||
kind = getobjname(ci_func(ci)->p, currentpc(ci),
|
||||
cast_int(cast(StkId, o) - (ci->func + 1)), &name);
|
||||
}
|
||||
return (kind) ? luaO_pushfstring(L, " (%s '%s')", kind, name) : "";
|
||||
}
|
||||
|
||||
|
||||
l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) {
|
||||
const char *t = luaT_objtypename(L, o);
|
||||
luaG_runerror(L, "attempt to %s a %s value%s", op, t, varinfo(L, o));
|
||||
}
|
||||
|
||||
|
||||
l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what) {
|
||||
luaG_runerror(L, "bad 'for' %s (number expected, got %s)",
|
||||
what, luaT_objtypename(L, o));
|
||||
}
|
||||
|
||||
|
||||
l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) {
|
||||
if (ttisstring(p1) || cvt2str(p1)) p1 = p2;
|
||||
luaG_typeerror(L, p1, "concatenate");
|
||||
}
|
||||
|
||||
|
||||
l_noret luaG_opinterror (lua_State *L, const TValue *p1,
|
||||
const TValue *p2, const char *msg) {
|
||||
if (!ttisnumber(p1)) /* first operand is wrong? */
|
||||
p2 = p1; /* now second is wrong */
|
||||
luaG_typeerror(L, p2, msg);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Error when both values are convertible to numbers, but not to integers
|
||||
*/
|
||||
l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) {
|
||||
lua_Integer temp;
|
||||
if (!tointegerns(p1, &temp))
|
||||
p2 = p1;
|
||||
luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2));
|
||||
}
|
||||
|
||||
|
||||
l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {
|
||||
const char *t1 = luaT_objtypename(L, p1);
|
||||
const char *t2 = luaT_objtypename(L, p2);
|
||||
if (strcmp(t1, t2) == 0)
|
||||
luaG_runerror(L, "attempt to compare two %s values", t1);
|
||||
else
|
||||
luaG_runerror(L, "attempt to compare %s with %s", t1, t2);
|
||||
}
|
||||
|
||||
|
||||
/* add src:line information to 'msg' */
|
||||
const char *luaG_addinfo (lua_State *L, const char *msg, TString *src,
|
||||
int line) {
|
||||
char buff[LUA_IDSIZE];
|
||||
if (src)
|
||||
luaO_chunkid(buff, getstr(src), LUA_IDSIZE);
|
||||
else { /* no source available; use "?" instead */
|
||||
buff[0] = '?'; buff[1] = '\0';
|
||||
}
|
||||
return luaO_pushfstring(L, "%s:%d: %s", buff, line, msg);
|
||||
}
|
||||
|
||||
|
||||
l_noret luaG_errormsg (lua_State *L) {
|
||||
if (L->errfunc != 0) { /* is there an error handling function? */
|
||||
StkId errfunc = restorestack(L, L->errfunc);
|
||||
lua_assert(ttisfunction(s2v(errfunc)));
|
||||
setobjs2s(L, L->top, L->top - 1); /* move argument */
|
||||
setobjs2s(L, L->top - 1, errfunc); /* push function */
|
||||
L->top++; /* assume EXTRA_STACK */
|
||||
luaD_callnoyield(L, L->top - 2, 1); /* call it */
|
||||
}
|
||||
luaD_throw(L, LUA_ERRRUN);
|
||||
}
|
||||
|
||||
|
||||
l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {
|
||||
CallInfo *ci = L->ci;
|
||||
const char *msg;
|
||||
va_list argp;
|
||||
luaC_checkGC(L); /* error message uses memory */
|
||||
va_start(argp, fmt);
|
||||
msg = luaO_pushvfstring(L, fmt, argp); /* format message */
|
||||
va_end(argp);
|
||||
if (isLua(ci)) /* if Lua function, add source:line information */
|
||||
luaG_addinfo(L, msg, ci_func(ci)->p->source, currentline(ci));
|
||||
luaG_errormsg(L);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Check whether new instruction 'newpc' is in a different line from
|
||||
** previous instruction 'oldpc'.
|
||||
*/
|
||||
static int changedline (const Proto *p, int oldpc, int newpc) {
|
||||
while (oldpc++ < newpc) {
|
||||
if (p->lineinfo[oldpc] != 0)
|
||||
return (luaG_getfuncline(p, oldpc - 1) != luaG_getfuncline(p, newpc));
|
||||
}
|
||||
return 0; /* no line changes in the way */
|
||||
}
|
||||
|
||||
|
||||
int luaG_traceexec (lua_State *L, const Instruction *pc) {
|
||||
CallInfo *ci = L->ci;
|
||||
lu_byte mask = L->hookmask;
|
||||
int counthook;
|
||||
if (!(mask & (LUA_MASKLINE | LUA_MASKCOUNT))) { /* no hooks? */
|
||||
ci->u.l.trap = 0; /* don't need to stop again */
|
||||
return 0; /* turn off 'trap' */
|
||||
}
|
||||
pc++; /* reference is always next instruction */
|
||||
ci->u.l.savedpc = pc; /* save 'pc' */
|
||||
counthook = (--L->hookcount == 0 && (mask & LUA_MASKCOUNT));
|
||||
if (counthook)
|
||||
resethookcount(L); /* reset count */
|
||||
else if (!(mask & LUA_MASKLINE))
|
||||
return 1; /* no line hook and count != 0; nothing to be done now */
|
||||
if (ci->callstatus & CIST_HOOKYIELD) { /* called hook last time? */
|
||||
ci->callstatus &= ~CIST_HOOKYIELD; /* erase mark */
|
||||
return 1; /* do not call hook again (VM yielded, so it did not move) */
|
||||
}
|
||||
if (!isIT(*(ci->u.l.savedpc - 1)))
|
||||
L->top = ci->top; /* prepare top */
|
||||
if (counthook)
|
||||
luaD_hook(L, LUA_HOOKCOUNT, -1, 0, 0); /* call count hook */
|
||||
if (mask & LUA_MASKLINE) {
|
||||
const Proto *p = ci_func(ci)->p;
|
||||
int npci = pcRel(pc, p);
|
||||
if (npci == 0 || /* call linehook when enter a new function, */
|
||||
pc <= L->oldpc || /* when jump back (loop), or when */
|
||||
changedline(p, pcRel(L->oldpc, p), npci)) { /* enter new line */
|
||||
int newline = luaG_getfuncline(p, npci);
|
||||
luaD_hook(L, LUA_HOOKLINE, newline, 0, 0); /* call line hook */
|
||||
}
|
||||
L->oldpc = pc; /* 'pc' of last call to line hook */
|
||||
}
|
||||
if (L->status == LUA_YIELD) { /* did hook yield? */
|
||||
if (counthook)
|
||||
L->hookcount = 1; /* undo decrement to zero */
|
||||
ci->u.l.savedpc--; /* undo increment (resume will increment it again) */
|
||||
ci->callstatus |= CIST_HOOKYIELD; /* mark that it yielded */
|
||||
luaD_throw(L, LUA_YIELD);
|
||||
}
|
||||
return 1; /* keep 'trap' on */
|
||||
}
|
||||
|
47
source/lua/ldebug.h
Normal file
47
source/lua/ldebug.h
Normal file
|
@ -0,0 +1,47 @@
|
|||
/*
|
||||
** $Id: ldebug.h $
|
||||
** Auxiliary functions from Debug Interface module
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#ifndef ldebug_h
|
||||
#define ldebug_h
|
||||
|
||||
|
||||
#include "lstate.h"
|
||||
|
||||
|
||||
#define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1)
|
||||
|
||||
#define resethookcount(L) (L->hookcount = L->basehookcount)
|
||||
|
||||
/*
|
||||
** mark for entries in 'lineinfo' array that has absolute information in
|
||||
** 'abslineinfo' array
|
||||
*/
|
||||
#define ABSLINEINFO (-0x80)
|
||||
|
||||
LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc);
|
||||
LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
|
||||
StkId *pos);
|
||||
LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
|
||||
const char *opname);
|
||||
LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
|
||||
const char *what);
|
||||
LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
|
||||
const TValue *p2);
|
||||
LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
|
||||
const TValue *p2,
|
||||
const char *msg);
|
||||
LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
|
||||
const TValue *p2);
|
||||
LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
|
||||
const TValue *p2);
|
||||
LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
|
||||
LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
|
||||
TString *src, int line);
|
||||
LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
|
||||
LUAI_FUNC int luaG_traceexec (lua_State *L, const Instruction *pc);
|
||||
|
||||
|
||||
#endif
|
BIN
source/lua/ldebug.o
Normal file
BIN
source/lua/ldebug.o
Normal file
Binary file not shown.
822
source/lua/ldo.c
Normal file
822
source/lua/ldo.c
Normal file
|
@ -0,0 +1,822 @@
|
|||
/*
|
||||
** $Id: ldo.c $
|
||||
** Stack and Call structure of Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
||||
#define ldo_c
|
||||
#define LUA_CORE
|
||||
|
||||
#include "lprefix.h"
|
||||
|
||||
|
||||
#include <setjmp.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
#include "lapi.h"
|
||||
#include "ldebug.h"
|
||||
#include "ldo.h"
|
||||
#include "lfunc.h"
|
||||
#include "lgc.h"
|
||||
#include "lmem.h"
|
||||
#include "lobject.h"
|
||||
#include "lopcodes.h"
|
||||
#include "lparser.h"
|
||||
#include "lstate.h"
|
||||
#include "lstring.h"
|
||||
#include "ltable.h"
|
||||
#include "ltm.h"
|
||||
#include "lundump.h"
|
||||
#include "lvm.h"
|
||||
#include "lzio.h"
|
||||
|
||||
|
||||
|
||||
#define errorstatus(s) ((s) > LUA_YIELD)
|
||||
|
||||
|
||||
/*
|
||||
** {======================================================
|
||||
** Error-recovery functions
|
||||
** =======================================================
|
||||
*/
|
||||
|
||||
/*
|
||||
** LUAI_THROW/LUAI_TRY define how Lua does exception handling. By
|
||||
** default, Lua handles errors with exceptions when compiling as
|
||||
** C++ code, with _longjmp/_setjmp when asked to use them, and with
|
||||
** longjmp/setjmp otherwise.
|
||||
*/
|
||||
#if !defined(LUAI_THROW) /* { */
|
||||
|
||||
#if defined(__cplusplus) && !defined(LUA_USE_LONGJMP) /* { */
|
||||
|
||||
/* C++ exceptions */
|
||||
#define LUAI_THROW(L,c) throw(c)
|
||||
#define LUAI_TRY(L,c,a) \
|
||||
try { a } catch(...) { if ((c)->status == 0) (c)->status = -1; }
|
||||
#define luai_jmpbuf int /* dummy variable */
|
||||
|
||||
#elif defined(LUA_USE_POSIX) /* }{ */
|
||||
|
||||
/* in POSIX, try _longjmp/_setjmp (more efficient) */
|
||||
#define LUAI_THROW(L,c) _longjmp((c)->b, 1)
|
||||
#define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a }
|
||||
#define luai_jmpbuf jmp_buf
|
||||
|
||||
#else /* }{ */
|
||||
|
||||
/* ISO C handling with long jumps */
|
||||
#define LUAI_THROW(L,c) longjmp((c)->b, 1)
|
||||
#define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a }
|
||||
#define luai_jmpbuf jmp_buf
|
||||
|
||||
#endif /* } */
|
||||
|
||||
#endif /* } */
|
||||
|
||||
|
||||
|
||||
/* chain list of long jump buffers */
|
||||
struct lua_longjmp {
|
||||
struct lua_longjmp *previous;
|
||||
luai_jmpbuf b;
|
||||
volatile int status; /* error code */
|
||||
};
|
||||
|
||||
|
||||
void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop) {
|
||||
switch (errcode) {
|
||||
case LUA_ERRMEM: { /* memory error? */
|
||||
setsvalue2s(L, oldtop, G(L)->memerrmsg); /* reuse preregistered msg. */
|
||||
break;
|
||||
}
|
||||
case LUA_ERRERR: {
|
||||
setsvalue2s(L, oldtop, luaS_newliteral(L, "error in error handling"));
|
||||
break;
|
||||
}
|
||||
case CLOSEPROTECT: {
|
||||
setnilvalue(s2v(oldtop)); /* no error message */
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
setobjs2s(L, oldtop, L->top - 1); /* error message on current top */
|
||||
break;
|
||||
}
|
||||
}
|
||||
L->top = oldtop + 1;
|
||||
}
|
||||
|
||||
|
||||
l_noret luaD_throw (lua_State *L, int errcode) {
|
||||
if (L->errorJmp) { /* thread has an error handler? */
|
||||
L->errorJmp->status = errcode; /* set status */
|
||||
LUAI_THROW(L, L->errorJmp); /* jump to it */
|
||||
}
|
||||
else { /* thread has no error handler */
|
||||
global_State *g = G(L);
|
||||
errcode = luaF_close(L, L->stack, errcode); /* close all upvalues */
|
||||
L->status = cast_byte(errcode); /* mark it as dead */
|
||||
if (g->mainthread->errorJmp) { /* main thread has a handler? */
|
||||
setobjs2s(L, g->mainthread->top++, L->top - 1); /* copy error obj. */
|
||||
luaD_throw(g->mainthread, errcode); /* re-throw in main thread */
|
||||
}
|
||||
else { /* no handler at all; abort */
|
||||
if (g->panic) { /* panic function? */
|
||||
luaD_seterrorobj(L, errcode, L->top); /* assume EXTRA_STACK */
|
||||
if (L->ci->top < L->top)
|
||||
L->ci->top = L->top; /* pushing msg. can break this invariant */
|
||||
lua_unlock(L);
|
||||
g->panic(L); /* call panic function (last chance to jump out) */
|
||||
}
|
||||
abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {
|
||||
l_uint32 oldnCcalls = L->nCcalls - L->nci;
|
||||
struct lua_longjmp lj;
|
||||
lua_assert(L->nCcalls >= L->nci);
|
||||
lj.status = LUA_OK;
|
||||
lj.previous = L->errorJmp; /* chain new error handler */
|
||||
L->errorJmp = &lj;
|
||||
LUAI_TRY(L, &lj,
|
||||
(*f)(L, ud);
|
||||
);
|
||||
L->errorJmp = lj.previous; /* restore old error handler */
|
||||
L->nCcalls = oldnCcalls + L->nci;
|
||||
return lj.status;
|
||||
}
|
||||
|
||||
/* }====================================================== */
|
||||
|
||||
|
||||
/*
|
||||
** {==================================================================
|
||||
** Stack reallocation
|
||||
** ===================================================================
|
||||
*/
|
||||
static void correctstack (lua_State *L, StkId oldstack, StkId newstack) {
|
||||
CallInfo *ci;
|
||||
UpVal *up;
|
||||
if (oldstack == newstack)
|
||||
return; /* stack address did not change */
|
||||
L->top = (L->top - oldstack) + newstack;
|
||||
for (up = L->openupval; up != NULL; up = up->u.open.next)
|
||||
up->v = s2v((uplevel(up) - oldstack) + newstack);
|
||||
for (ci = L->ci; ci != NULL; ci = ci->previous) {
|
||||
ci->top = (ci->top - oldstack) + newstack;
|
||||
ci->func = (ci->func - oldstack) + newstack;
|
||||
if (isLua(ci))
|
||||
ci->u.l.trap = 1; /* signal to update 'trap' in 'luaV_execute' */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* some space for error handling */
|
||||
#define ERRORSTACKSIZE (LUAI_MAXSTACK + 200)
|
||||
|
||||
|
||||
int luaD_reallocstack (lua_State *L, int newsize, int raiseerror) {
|
||||
int lim = L->stacksize;
|
||||
StkId newstack = luaM_reallocvector(L, L->stack, lim, newsize, StackValue);
|
||||
lua_assert(newsize <= LUAI_MAXSTACK || newsize == ERRORSTACKSIZE);
|
||||
lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK);
|
||||
if (unlikely(newstack == NULL)) { /* reallocation failed? */
|
||||
if (raiseerror)
|
||||
luaM_error(L);
|
||||
else return 0; /* do not raise an error */
|
||||
}
|
||||
for (; lim < newsize; lim++)
|
||||
setnilvalue(s2v(newstack + lim)); /* erase new segment */
|
||||
correctstack(L, L->stack, newstack);
|
||||
L->stack = newstack;
|
||||
L->stacksize = newsize;
|
||||
L->stack_last = L->stack + newsize - EXTRA_STACK;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Try to grow the stack by at least 'n' elements. when 'raiseerror'
|
||||
** is true, raises any error; otherwise, return 0 in case of errors.
|
||||
*/
|
||||
int luaD_growstack (lua_State *L, int n, int raiseerror) {
|
||||
int size = L->stacksize;
|
||||
int newsize = 2 * size; /* tentative new size */
|
||||
if (unlikely(size > LUAI_MAXSTACK)) { /* need more space after extra size? */
|
||||
if (raiseerror)
|
||||
luaD_throw(L, LUA_ERRERR); /* error inside message handler */
|
||||
else return 0;
|
||||
}
|
||||
else {
|
||||
int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK;
|
||||
if (newsize > LUAI_MAXSTACK) /* cannot cross the limit */
|
||||
newsize = LUAI_MAXSTACK;
|
||||
if (newsize < needed) /* but must respect what was asked for */
|
||||
newsize = needed;
|
||||
if (unlikely(newsize > LUAI_MAXSTACK)) { /* stack overflow? */
|
||||
/* add extra size to be able to handle the error message */
|
||||
luaD_reallocstack(L, ERRORSTACKSIZE, raiseerror);
|
||||
if (raiseerror)
|
||||
luaG_runerror(L, "stack overflow");
|
||||
else return 0;
|
||||
}
|
||||
} /* else no errors */
|
||||
return luaD_reallocstack(L, newsize, raiseerror);
|
||||
}
|
||||
|
||||
|
||||
static int stackinuse (lua_State *L) {
|
||||
CallInfo *ci;
|
||||
StkId lim = L->top;
|
||||
for (ci = L->ci; ci != NULL; ci = ci->previous) {
|
||||
if (lim < ci->top) lim = ci->top;
|
||||
}
|
||||
lua_assert(lim <= L->stack_last);
|
||||
return cast_int(lim - L->stack) + 1; /* part of stack in use */
|
||||
}
|
||||
|
||||
|
||||
void luaD_shrinkstack (lua_State *L) {
|
||||
int inuse = stackinuse(L);
|
||||
int goodsize = inuse + (inuse / 8) + 2*EXTRA_STACK;
|
||||
if (goodsize > LUAI_MAXSTACK)
|
||||
goodsize = LUAI_MAXSTACK; /* respect stack limit */
|
||||
/* if thread is currently not handling a stack overflow and its
|
||||
good size is smaller than current size, shrink its stack */
|
||||
if (inuse <= (LUAI_MAXSTACK - EXTRA_STACK) &&
|
||||
goodsize < L->stacksize)
|
||||
luaD_reallocstack(L, goodsize, 0); /* ok if that fails */
|
||||
else /* don't change stack */
|
||||
condmovestack(L,{},{}); /* (change only for debugging) */
|
||||
luaE_shrinkCI(L); /* shrink CI list */
|
||||
}
|
||||
|
||||
|
||||
void luaD_inctop (lua_State *L) {
|
||||
luaD_checkstack(L, 1);
|
||||
L->top++;
|
||||
}
|
||||
|
||||
/* }================================================================== */
|
||||
|
||||
|
||||
/*
|
||||
** Call a hook for the given event. Make sure there is a hook to be
|
||||
** called. (Both 'L->hook' and 'L->hookmask', which trigger this
|
||||
** function, can be changed asynchronously by signals.)
|
||||
*/
|
||||
void luaD_hook (lua_State *L, int event, int line,
|
||||
int ftransfer, int ntransfer) {
|
||||
lua_Hook hook = L->hook;
|
||||
if (hook && L->allowhook) { /* make sure there is a hook */
|
||||
int mask = CIST_HOOKED;
|
||||
CallInfo *ci = L->ci;
|
||||
ptrdiff_t top = savestack(L, L->top);
|
||||
ptrdiff_t ci_top = savestack(L, ci->top);
|
||||
lua_Debug ar;
|
||||
ar.event = event;
|
||||
ar.currentline = line;
|
||||
ar.i_ci = ci;
|
||||
if (ntransfer != 0) {
|
||||
mask |= CIST_TRAN; /* 'ci' has transfer information */
|
||||
ci->u2.transferinfo.ftransfer = ftransfer;
|
||||
ci->u2.transferinfo.ntransfer = ntransfer;
|
||||
}
|
||||
luaD_checkstack(L, LUA_MINSTACK); /* ensure minimum stack size */
|
||||
if (L->top + LUA_MINSTACK > ci->top)
|
||||
ci->top = L->top + LUA_MINSTACK;
|
||||
L->allowhook = 0; /* cannot call hooks inside a hook */
|
||||
ci->callstatus |= mask;
|
||||
lua_unlock(L);
|
||||
(*hook)(L, &ar);
|
||||
lua_lock(L);
|
||||
lua_assert(!L->allowhook);
|
||||
L->allowhook = 1;
|
||||
ci->top = restorestack(L, ci_top);
|
||||
L->top = restorestack(L, top);
|
||||
ci->callstatus &= ~mask;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Executes a call hook for Lua functions. This function is called
|
||||
** whenever 'hookmask' is not zero, so it checks whether call hooks are
|
||||
** active.
|
||||
*/
|
||||
void luaD_hookcall (lua_State *L, CallInfo *ci) {
|
||||
int hook = (ci->callstatus & CIST_TAIL) ? LUA_HOOKTAILCALL : LUA_HOOKCALL;
|
||||
Proto *p;
|
||||
if (!(L->hookmask & LUA_MASKCALL)) /* some other hook? */
|
||||
return; /* don't call hook */
|
||||
p = clLvalue(s2v(ci->func))->p;
|
||||
L->top = ci->top; /* prepare top */
|
||||
ci->u.l.savedpc++; /* hooks assume 'pc' is already incremented */
|
||||
luaD_hook(L, hook, -1, 1, p->numparams);
|
||||
ci->u.l.savedpc--; /* correct 'pc' */
|
||||
}
|
||||
|
||||
|
||||
static StkId rethook (lua_State *L, CallInfo *ci, StkId firstres, int nres) {
|
||||
ptrdiff_t oldtop = savestack(L, L->top); /* hook may change top */
|
||||
int delta = 0;
|
||||
if (isLuacode(ci)) {
|
||||
Proto *p = clLvalue(s2v(ci->func))->p;
|
||||
if (p->is_vararg)
|
||||
delta = ci->u.l.nextraargs + p->numparams + 1;
|
||||
if (L->top < ci->top)
|
||||
L->top = ci->top; /* correct top to run hook */
|
||||
}
|
||||
if (L->hookmask & LUA_MASKRET) { /* is return hook on? */
|
||||
int ftransfer;
|
||||
ci->func += delta; /* if vararg, back to virtual 'func' */
|
||||
ftransfer = cast(unsigned short, firstres - ci->func);
|
||||
luaD_hook(L, LUA_HOOKRET, -1, ftransfer, nres); /* call it */
|
||||
ci->func -= delta;
|
||||
}
|
||||
if (isLua(ci->previous))
|
||||
L->oldpc = ci->previous->u.l.savedpc; /* update 'oldpc' */
|
||||
return restorestack(L, oldtop);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Check whether __call metafield of 'func' is a function. If so, put
|
||||
** it in stack below original 'func' so that 'luaD_call' can call
|
||||
** it. Raise an error if __call metafield is not a function.
|
||||
*/
|
||||
void luaD_tryfuncTM (lua_State *L, StkId func) {
|
||||
const TValue *tm = luaT_gettmbyobj(L, s2v(func), TM_CALL);
|
||||
StkId p;
|
||||
if (unlikely(!ttisfunction(tm)))
|
||||
luaG_typeerror(L, s2v(func), "call");
|
||||
for (p = L->top; p > func; p--)
|
||||
setobjs2s(L, p, p-1);
|
||||
L->top++; /* assume EXTRA_STACK */
|
||||
setobj2s(L, func, tm); /* metamethod is the new function to be called */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Given 'nres' results at 'firstResult', move 'wanted' of them to 'res'.
|
||||
** Handle most typical cases (zero results for commands, one result for
|
||||
** expressions, multiple results for tail calls/single parameters)
|
||||
** separated.
|
||||
*/
|
||||
static void moveresults (lua_State *L, StkId res, int nres, int wanted) {
|
||||
StkId firstresult;
|
||||
int i;
|
||||
switch (wanted) { /* handle typical cases separately */
|
||||
case 0: /* no values needed */
|
||||
L->top = res;
|
||||
return;
|
||||
case 1: /* one value needed */
|
||||
if (nres == 0) /* no results? */
|
||||
setnilvalue(s2v(res)); /* adjust with nil */
|
||||
else
|
||||
setobjs2s(L, res, L->top - nres); /* move it to proper place */
|
||||
L->top = res + 1;
|
||||
return;
|
||||
case LUA_MULTRET:
|
||||
wanted = nres; /* we want all results */
|
||||
break;
|
||||
default: /* multiple results (or to-be-closed variables) */
|
||||
if (hastocloseCfunc(wanted)) { /* to-be-closed variables? */
|
||||
ptrdiff_t savedres = savestack(L, res);
|
||||
luaF_close(L, res, LUA_OK); /* may change the stack */
|
||||
res = restorestack(L, savedres);
|
||||
wanted = codeNresults(wanted); /* correct value */
|
||||
if (wanted == LUA_MULTRET)
|
||||
wanted = nres;
|
||||
}
|
||||
break;
|
||||
}
|
||||
firstresult = L->top - nres; /* index of first result */
|
||||
/* move all results to correct place */
|
||||
for (i = 0; i < nres && i < wanted; i++)
|
||||
setobjs2s(L, res + i, firstresult + i);
|
||||
for (; i < wanted; i++) /* complete wanted number of results */
|
||||
setnilvalue(s2v(res + i));
|
||||
L->top = res + wanted; /* top points after the last result */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Finishes a function call: calls hook if necessary, removes CallInfo,
|
||||
** moves current number of results to proper place.
|
||||
*/
|
||||
void luaD_poscall (lua_State *L, CallInfo *ci, int nres) {
|
||||
if (L->hookmask)
|
||||
L->top = rethook(L, ci, L->top - nres, nres);
|
||||
L->ci = ci->previous; /* back to caller */
|
||||
/* move results to proper place */
|
||||
moveresults(L, ci->func, nres, ci->nresults);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#define next_ci(L) (L->ci = (L->ci->next ? L->ci->next : luaE_extendCI(L)))
|
||||
|
||||
|
||||
/*
|
||||
** Prepare a function for a tail call, building its call info on top
|
||||
** of the current call info. 'narg1' is the number of arguments plus 1
|
||||
** (so that it includes the function itself).
|
||||
*/
|
||||
void luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int narg1) {
|
||||
Proto *p = clLvalue(s2v(func))->p;
|
||||
int fsize = p->maxstacksize; /* frame size */
|
||||
int nfixparams = p->numparams;
|
||||
int i;
|
||||
for (i = 0; i < narg1; i++) /* move down function and arguments */
|
||||
setobjs2s(L, ci->func + i, func + i);
|
||||
checkstackGC(L, fsize);
|
||||
func = ci->func; /* moved-down function */
|
||||
for (; narg1 <= nfixparams; narg1++)
|
||||
setnilvalue(s2v(func + narg1)); /* complete missing arguments */
|
||||
ci->top = func + 1 + fsize; /* top for new function */
|
||||
lua_assert(ci->top <= L->stack_last);
|
||||
ci->u.l.savedpc = p->code; /* starting point */
|
||||
ci->callstatus |= CIST_TAIL;
|
||||
L->top = func + narg1; /* set top */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Call a function (C or Lua). The function to be called is at *func.
|
||||
** The arguments are on the stack, right after the function.
|
||||
** When returns, all the results are on the stack, starting at the original
|
||||
** function position.
|
||||
*/
|
||||
void luaD_call (lua_State *L, StkId func, int nresults) {
|
||||
lua_CFunction f;
|
||||
TValue *funcv = s2v(func);
|
||||
switch (ttypetag(funcv)) {
|
||||
case LUA_TCCL: /* C closure */
|
||||
f = clCvalue(funcv)->f;
|
||||
goto Cfunc;
|
||||
case LUA_TLCF: /* light C function */
|
||||
f = fvalue(funcv);
|
||||
Cfunc: {
|
||||
int n; /* number of returns */
|
||||
CallInfo *ci;
|
||||
checkstackp(L, LUA_MINSTACK, func); /* ensure minimum stack size */
|
||||
ci = next_ci(L);
|
||||
ci->nresults = nresults;
|
||||
ci->callstatus = CIST_C;
|
||||
ci->top = L->top + LUA_MINSTACK;
|
||||
ci->func = func;
|
||||
lua_assert(ci->top <= L->stack_last);
|
||||
if (L->hookmask & LUA_MASKCALL) {
|
||||
int narg = cast_int(L->top - func) - 1;
|
||||
luaD_hook(L, LUA_HOOKCALL, -1, 1, narg);
|
||||
}
|
||||
lua_unlock(L);
|
||||
n = (*f)(L); /* do the actual call */
|
||||
lua_lock(L);
|
||||
api_checknelems(L, n);
|
||||
luaD_poscall(L, ci, n);
|
||||
break;
|
||||
}
|
||||
case LUA_TLCL: { /* Lua function */
|
||||
CallInfo *ci;
|
||||
Proto *p = clLvalue(funcv)->p;
|
||||
int narg = cast_int(L->top - func) - 1; /* number of real arguments */
|
||||
int nfixparams = p->numparams;
|
||||
int fsize = p->maxstacksize; /* frame size */
|
||||
checkstackp(L, fsize, func);
|
||||
ci = next_ci(L);
|
||||
ci->nresults = nresults;
|
||||
ci->u.l.savedpc = p->code; /* starting point */
|
||||
ci->callstatus = 0;
|
||||
ci->top = func + 1 + fsize;
|
||||
ci->func = func;
|
||||
for (; narg < nfixparams; narg++)
|
||||
setnilvalue(s2v(L->top++)); /* complete missing arguments */
|
||||
lua_assert(ci->top <= L->stack_last);
|
||||
luaV_execute(L, ci); /* run the function */
|
||||
break;
|
||||
}
|
||||
default: { /* not a function */
|
||||
luaD_tryfuncTM(L, func); /* try to get '__call' metamethod */
|
||||
luaD_call(L, func, nresults); /* now it must be a function */
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Similar to 'luaD_call', but does not allow yields during the call.
|
||||
** If there is a stack overflow, freeing all CI structures will
|
||||
** force the subsequent call to invoke 'luaE_extendCI', which then
|
||||
** will raise any errors.
|
||||
*/
|
||||
void luaD_callnoyield (lua_State *L, StkId func, int nResults) {
|
||||
incXCcalls(L);
|
||||
if (getCcalls(L) >= LUAI_MAXCCALLS) /* possible stack overflow? */
|
||||
luaE_freeCI(L);
|
||||
luaD_call(L, func, nResults);
|
||||
decXCcalls(L);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Completes the execution of an interrupted C function, calling its
|
||||
** continuation function.
|
||||
*/
|
||||
static void finishCcall (lua_State *L, int status) {
|
||||
CallInfo *ci = L->ci;
|
||||
int n;
|
||||
/* must have a continuation and must be able to call it */
|
||||
lua_assert(ci->u.c.k != NULL && yieldable(L));
|
||||
/* error status can only happen in a protected call */
|
||||
lua_assert((ci->callstatus & CIST_YPCALL) || status == LUA_YIELD);
|
||||
if (ci->callstatus & CIST_YPCALL) { /* was inside a pcall? */
|
||||
ci->callstatus &= ~CIST_YPCALL; /* continuation is also inside it */
|
||||
L->errfunc = ci->u.c.old_errfunc; /* with the same error function */
|
||||
}
|
||||
/* finish 'lua_callk'/'lua_pcall'; CIST_YPCALL and 'errfunc' already
|
||||
handled */
|
||||
adjustresults(L, ci->nresults);
|
||||
lua_unlock(L);
|
||||
n = (*ci->u.c.k)(L, status, ci->u.c.ctx); /* call continuation function */
|
||||
lua_lock(L);
|
||||
api_checknelems(L, n);
|
||||
luaD_poscall(L, ci, n); /* finish 'luaD_call' */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Executes "full continuation" (everything in the stack) of a
|
||||
** previously interrupted coroutine until the stack is empty (or another
|
||||
** interruption long-jumps out of the loop). If the coroutine is
|
||||
** recovering from an error, 'ud' points to the error status, which must
|
||||
** be passed to the first continuation function (otherwise the default
|
||||
** status is LUA_YIELD).
|
||||
*/
|
||||
static void unroll (lua_State *L, void *ud) {
|
||||
CallInfo *ci;
|
||||
if (ud != NULL) /* error status? */
|
||||
finishCcall(L, *(int *)ud); /* finish 'lua_pcallk' callee */
|
||||
while ((ci = L->ci) != &L->base_ci) { /* something in the stack */
|
||||
if (!isLua(ci)) /* C function? */
|
||||
finishCcall(L, LUA_YIELD); /* complete its execution */
|
||||
else { /* Lua function */
|
||||
luaV_finishOp(L); /* finish interrupted instruction */
|
||||
luaV_execute(L, ci); /* execute down to higher C 'boundary' */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Try to find a suspended protected call (a "recover point") for the
|
||||
** given thread.
|
||||
*/
|
||||
static CallInfo *findpcall (lua_State *L) {
|
||||
CallInfo *ci;
|
||||
for (ci = L->ci; ci != NULL; ci = ci->previous) { /* search for a pcall */
|
||||
if (ci->callstatus & CIST_YPCALL)
|
||||
return ci;
|
||||
}
|
||||
return NULL; /* no pending pcall */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Recovers from an error in a coroutine. Finds a recover point (if
|
||||
** there is one) and completes the execution of the interrupted
|
||||
** 'luaD_pcall'. If there is no recover point, returns zero.
|
||||
*/
|
||||
static int recover (lua_State *L, int status) {
|
||||
StkId oldtop;
|
||||
CallInfo *ci = findpcall(L);
|
||||
if (ci == NULL) return 0; /* no recovery point */
|
||||
/* "finish" luaD_pcall */
|
||||
oldtop = restorestack(L, ci->u2.funcidx);
|
||||
luaF_close(L, oldtop, status); /* may change the stack */
|
||||
oldtop = restorestack(L, ci->u2.funcidx);
|
||||
luaD_seterrorobj(L, status, oldtop);
|
||||
L->ci = ci;
|
||||
L->allowhook = getoah(ci->callstatus); /* restore original 'allowhook' */
|
||||
luaD_shrinkstack(L);
|
||||
L->errfunc = ci->u.c.old_errfunc;
|
||||
return 1; /* continue running the coroutine */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Signal an error in the call to 'lua_resume', not in the execution
|
||||
** of the coroutine itself. (Such errors should not be handled by any
|
||||
** coroutine error handler and should not kill the coroutine.)
|
||||
*/
|
||||
static int resume_error (lua_State *L, const char *msg, int narg) {
|
||||
L->top -= narg; /* remove args from the stack */
|
||||
setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */
|
||||
api_incr_top(L);
|
||||
lua_unlock(L);
|
||||
return LUA_ERRRUN;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Do the work for 'lua_resume' in protected mode. Most of the work
|
||||
** depends on the status of the coroutine: initial state, suspended
|
||||
** inside a hook, or regularly suspended (optionally with a continuation
|
||||
** function), plus erroneous cases: non-suspended coroutine or dead
|
||||
** coroutine.
|
||||
*/
|
||||
static void resume (lua_State *L, void *ud) {
|
||||
int n = *(cast(int*, ud)); /* number of arguments */
|
||||
StkId firstArg = L->top - n; /* first argument */
|
||||
CallInfo *ci = L->ci;
|
||||
if (L->status == LUA_OK) { /* starting a coroutine? */
|
||||
luaD_call(L, firstArg - 1, LUA_MULTRET);
|
||||
}
|
||||
else { /* resuming from previous yield */
|
||||
lua_assert(L->status == LUA_YIELD);
|
||||
L->status = LUA_OK; /* mark that it is running (again) */
|
||||
if (isLua(ci)) /* yielded inside a hook? */
|
||||
luaV_execute(L, ci); /* just continue running Lua code */
|
||||
else { /* 'common' yield */
|
||||
if (ci->u.c.k != NULL) { /* does it have a continuation function? */
|
||||
lua_unlock(L);
|
||||
n = (*ci->u.c.k)(L, LUA_YIELD, ci->u.c.ctx); /* call continuation */
|
||||
lua_lock(L);
|
||||
api_checknelems(L, n);
|
||||
}
|
||||
luaD_poscall(L, ci, n); /* finish 'luaD_call' */
|
||||
}
|
||||
unroll(L, NULL); /* run continuation */
|
||||
}
|
||||
}
|
||||
|
||||
LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs,
|
||||
int *nresults) {
|
||||
int status;
|
||||
lua_lock(L);
|
||||
if (L->status == LUA_OK) { /* may be starting a coroutine */
|
||||
if (L->ci != &L->base_ci) /* not in base level? */
|
||||
return resume_error(L, "cannot resume non-suspended coroutine", nargs);
|
||||
}
|
||||
else if (L->status != LUA_YIELD)
|
||||
return resume_error(L, "cannot resume dead coroutine", nargs);
|
||||
if (from == NULL)
|
||||
L->nCcalls = 1;
|
||||
else /* correct 'nCcalls' for this thread */
|
||||
L->nCcalls = getCcalls(from) - from->nci + L->nci + CSTACKCF;
|
||||
if (L->nCcalls >= LUAI_MAXCCALLS)
|
||||
return resume_error(L, "C stack overflow", nargs);
|
||||
luai_userstateresume(L, nargs);
|
||||
api_checknelems(L, (L->status == LUA_OK) ? nargs + 1 : nargs);
|
||||
status = luaD_rawrunprotected(L, resume, &nargs);
|
||||
/* continue running after recoverable errors */
|
||||
while (errorstatus(status) && recover(L, status)) {
|
||||
/* unroll continuation */
|
||||
status = luaD_rawrunprotected(L, unroll, &status);
|
||||
}
|
||||
if (likely(!errorstatus(status)))
|
||||
lua_assert(status == L->status); /* normal end or yield */
|
||||
else { /* unrecoverable error */
|
||||
status = luaF_close(L, L->stack, status); /* close all upvalues */
|
||||
L->status = cast_byte(status); /* mark thread as 'dead' */
|
||||
luaD_seterrorobj(L, status, L->stack + 1); /* push error message */
|
||||
L->ci = &L->base_ci; /* back to the original C level */
|
||||
L->ci->top = L->top;
|
||||
}
|
||||
*nresults = (status == LUA_YIELD) ? L->ci->u2.nyield
|
||||
: cast_int(L->top - (L->ci->func + 1));
|
||||
lua_unlock(L);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
LUA_API int lua_isyieldable (lua_State *L) {
|
||||
return yieldable(L);
|
||||
}
|
||||
|
||||
|
||||
LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx,
|
||||
lua_KFunction k) {
|
||||
CallInfo *ci = L->ci;
|
||||
luai_userstateyield(L, nresults);
|
||||
lua_lock(L);
|
||||
api_checknelems(L, nresults);
|
||||
if (unlikely(!yieldable(L))) {
|
||||
if (L != G(L)->mainthread)
|
||||
luaG_runerror(L, "attempt to yield across a C-call boundary");
|
||||
else
|
||||
luaG_runerror(L, "attempt to yield from outside a coroutine");
|
||||
}
|
||||
L->status = LUA_YIELD;
|
||||
if (isLua(ci)) { /* inside a hook? */
|
||||
lua_assert(!isLuacode(ci));
|
||||
api_check(L, k == NULL, "hooks cannot continue after yielding");
|
||||
ci->u2.nyield = 0; /* no results */
|
||||
}
|
||||
else {
|
||||
if ((ci->u.c.k = k) != NULL) /* is there a continuation? */
|
||||
ci->u.c.ctx = ctx; /* save context */
|
||||
ci->u2.nyield = nresults; /* save number of results */
|
||||
luaD_throw(L, LUA_YIELD);
|
||||
}
|
||||
lua_assert(ci->callstatus & CIST_HOOKED); /* must be inside a hook */
|
||||
lua_unlock(L);
|
||||
return 0; /* return to 'luaD_hook' */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Call the C function 'func' in protected mode, restoring basic
|
||||
** thread information ('allowhook', etc.) and in particular
|
||||
** its stack level in case of errors.
|
||||
*/
|
||||
int luaD_pcall (lua_State *L, Pfunc func, void *u,
|
||||
ptrdiff_t old_top, ptrdiff_t ef) {
|
||||
int status;
|
||||
CallInfo *old_ci = L->ci;
|
||||
lu_byte old_allowhooks = L->allowhook;
|
||||
ptrdiff_t old_errfunc = L->errfunc;
|
||||
L->errfunc = ef;
|
||||
status = luaD_rawrunprotected(L, func, u);
|
||||
if (unlikely(status != LUA_OK)) { /* an error occurred? */
|
||||
StkId oldtop = restorestack(L, old_top);
|
||||
L->ci = old_ci;
|
||||
L->allowhook = old_allowhooks;
|
||||
status = luaF_close(L, oldtop, status);
|
||||
oldtop = restorestack(L, old_top); /* previous call may change stack */
|
||||
luaD_seterrorobj(L, status, oldtop);
|
||||
luaD_shrinkstack(L);
|
||||
}
|
||||
L->errfunc = old_errfunc;
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** Execute a protected parser.
|
||||
*/
|
||||
struct SParser { /* data to 'f_parser' */
|
||||
ZIO *z;
|
||||
Mbuffer buff; /* dynamic structure used by the scanner */
|
||||
Dyndata dyd; /* dynamic structures used by the parser */
|
||||
const char *mode;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
|
||||
static void checkmode (lua_State *L, const char *mode, const char *x) {
|
||||
if (mode && strchr(mode, x[0]) == NULL) {
|
||||
luaO_pushfstring(L,
|
||||
"attempt to load a %s chunk (mode is '%s')", x, mode);
|
||||
luaD_throw(L, LUA_ERRSYNTAX);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void f_parser (lua_State *L, void *ud) {
|
||||
LClosure *cl;
|
||||
struct SParser *p = cast(struct SParser *, ud);
|
||||
int c = zgetc(p->z); /* read first character */
|
||||
if (c == LUA_SIGNATURE[0]) {
|
||||
checkmode(L, p->mode, "binary");
|
||||
cl = luaU_undump(L, p->z, p->name);
|
||||
}
|
||||
else {
|
||||
checkmode(L, p->mode, "text");
|
||||
cl = luaY_parser(L, p->z, &p->buff, &p->dyd, p->name, c);
|
||||
}
|
||||
lua_assert(cl->nupvalues == cl->p->sizeupvalues);
|
||||
luaF_initupvals(L, cl);
|
||||
}
|
||||
|
||||
|
||||
int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
|
||||
const char *mode) {
|
||||
struct SParser p;
|
||||
int status;
|
||||
incnny(L); /* cannot yield during parsing */
|
||||
p.z = z; p.name = name; p.mode = mode;
|
||||
p.dyd.actvar.arr = NULL; p.dyd.actvar.size = 0;
|
||||
p.dyd.gt.arr = NULL; p.dyd.gt.size = 0;
|
||||
p.dyd.label.arr = NULL; p.dyd.label.size = 0;
|
||||
luaZ_initbuffer(L, &p.buff);
|
||||
status = luaD_pcall(L, f_parser, &p, savestack(L, L->top), L->errfunc);
|
||||
luaZ_freebuffer(L, &p.buff);
|
||||
luaM_freearray(L, p.dyd.actvar.arr, p.dyd.actvar.size);
|
||||
luaM_freearray(L, p.dyd.gt.arr, p.dyd.gt.size);
|
||||
luaM_freearray(L, p.dyd.label.arr, p.dyd.label.size);
|
||||
decnny(L);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue