Lua 5.4 C API functions mapped to Moonquakes implementation.
In Moonquakes, Lua C API functions are redefined with the mq_ prefix
to reflect that they are Moonquakes-specific implementations, not a binary-compatible Lua C API.
State Manipulation
- [ ] mq_close - close a Lua state
- [ ] mq_newstate - create a new Lua state
- [ ] mq_newthread - create a new thread
- [ ] mq_resetthread - reset a thread
- [ ] mq_version - return Lua version
Stack Manipulation
- [ ] mq_absindex - convert to absolute index
- [ ] mq_checkstack - ensure stack space
- [ ] mq_copy - copy value between indices
- [ ] mq_gettop - get stack top index
- [ ] mq_pop - pop elements from stack
- [ ] mq_pushvalue - push copy of value
- [ ] mq_rotate - rotate stack elements
- [ ] mq_settop - set stack top index
- [ ] mq_xmove - move values between states
Access Functions (Stack → C)