1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-02-01 15:07:25 +00:00
UltimateTrainingModpack/source/lua_helper.c

12 lines
313 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"
#include "l2c.h"
2019-03-26 23:15:58 +00:00
void get_lua_stack(L2CAgent* l2c_agent, int index, L2CValue* l2c_val) {
2019-03-26 23:15:58 +00:00
asm("mov x8, %x0" : : "r"(l2c_val) : "x8" );
lib_L2CAgent_pop_lua_stack(l2c_agent, index);
}