1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-01-21 09:50:16 +00:00
UltimateTrainingModpack/source/lua_helper.c

11 lines
298 B
C
Raw Normal View History

2019-03-26 23:15:58 +00:00
#include <switch.h>
#include "saltysd_core.h"
#include "saltysd_ipc.h"
#include "saltysd_dynamic.h"
2019-03-27 02:45:17 +00:00
#include "l2c_imports.h"
2019-03-26 23:15:58 +00:00
void get_lua_stack(__int64_t* l2c_agent, int index, __int64_t* l2c_val) {
asm("mov x8, %x0" : : "r"(l2c_val) : "x8" );
lib_L2CAgent_pop_lua_stack(l2c_agent, index);
}