File: app.c.conf.in

package info (click to toggle)
dh-lua 24
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 236 kB
  • ctags: 21
  • sloc: sh: 124; ansic: 110; perl: 96; makefile: 59
file content (11 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (26)
1
2
3
4
5
6
7
8
9
10
11
// Copyright: © 2012 Enrico Tassi <gareuselesinge@debian.org>
// License: MIT/X

#include "@@LUA_HEADER@@"

static void app_open(lua_State* L){
  lua_getglobal(L,"package");
  lua_getfield(L,-1,"preload");
  lua_pushcfunction(L,luaopen_@@LUA_MODNAME_CPART_UNDERSCORE@@);
  lua_setfield(L,-2,"@@LUA_MODNAME_CPART@@");
}