#ifndef LSBITFLAGS_H #define LSBITFLAGS_H #include #include "compat.h" #include #include // type used to store the bitflags #define LSBF_BITFLAG lua_Integer // Validates that the given index is a bitflag object and returns its value. // If the index is not a bitflag object, a Lua error is raised. // The value will be left on the stack. LSBF_BITFLAG lsbf_checkbitflags(lua_State *L, int index); // Pushes a new bitflag object with the given value onto the stack. // Might raise a Lua error if memory allocation fails. void lsbf_pushbitflags(lua_State *L, LSBF_BITFLAG value); #endif