lua.c File Reference

OSKI-Lua stack support. More...

#include <lua/include/lua.h>
#include <lua/include/lualib.h>
#include <lua/include/lauxlib.h>
#include <oski/lua.h>

Functions

oski_matlua_toski_GetStackLuaMat (lua_State *L, int stack_pos)
 Examines the item at the specified position on the stack, and returns the object there if it is a OLUA_MAT object, or returns NULL otherwise.
oski_matlua_toski_PushEmptyLuaMat (lua_State *L)
 Returns a pointer to the newly created object, or NULL on error.


Detailed Description

OSKI-Lua stack support.


Function Documentation

oski_matlua_t* oski_PushEmptyLuaMat ( lua_State *  L  ) 

Returns a pointer to the newly created object, or NULL on error.

Executes a OSKI-Lua call to OLUA_MAT.new(), and leaves the result on the stack.

References oski_matlua_t::ind_type, INVALID_ID, oski_matlua_t::mat, oski_matlua_t::mattype_name, OLUA_MATTAB, OLUA_NEWUSERDATA, OSKI_IND_ID, OSKI_VAL_ID, oski_matlua_t::props, oski_matspecific_t::repr, oski_matspecific_t::type_id, and oski_matlua_t::val_type.


Generated on Fri Apr 8 22:35:19 2011 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.5.9