nngn
Loading...
Searching...
No Matches
utils.h File Reference

General utilities for stack manipulation. More...

#include <lua.hpp>
#include "os/platform.h"
#include "utils/log.h"
#include "utils/scoped.h"
#include "utils/utils.h"
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nngn::lua::defer_pop
 Pops n values from the Lua stack at scope exit. More...
 

Namespaces

namespace  nngn
 
namespace  nngn::lua
 

Functions

auto nngn::lua::defer_settop (lua_State *L, int i=-1)
 Resets the top of the stack at scope exit.
 
auto nngn::lua::stack_mark (lua_State *L, int extra=0)
 Creates a scoped object which verifies the stack top at scope exit.
 

Detailed Description

General utilities for stack manipulation.