File: hslobj.h

package info (click to toggle)
haskell-hslua-objectorientation 2.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 132 kB
  • sloc: haskell: 963; ansic: 223; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef hslobj_h
#define hslobj_h

#include <lua.h>

/* ***************************************************************
 * Helpers for fast element access
 * ***************************************************************/

/* Object field getter */
int hslua_udindex(lua_State *L);

/* Object field setter */
int hslua_udnewindex(lua_State *L);

/* Lazy access to object's caching table */
int hslua_get_caching_table(lua_State *L, int index);

/* Get a value from the object's uservalue cache */
int hslua_get_from_cache(lua_State *L);

#endif