File: hslauxlib.h

package info (click to toggle)
haskell-lua 2.3.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: haskell: 1,582; ansic: 403; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef hslauxlib_h
#define hslauxlib_h

#include <HsFFI.h>
#include <lua.h>
#include <lauxlib.h>

/* Auxiliary Library */

/*
** Creates a new state for use with the Haskell bindings.
*/
lua_State *hsluaL_newstate();

/*
** Converts object to string, respecting any metamethods; returns NULL
** if an error occurs.
*/
const char *hsluaL_tolstring(lua_State *L, int index, size_t *len);

#endif