File: hello.c

package info (click to toggle)
bam 0.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,552 kB
  • sloc: ansic: 21,261; python: 731; makefile: 45; sh: 35; cpp: 30
file content (13 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <lua/lua.h>

static int lf_helloworld(struct lua_State *L)
{
	lua_pushstring(L, "Hello World!");
	return 1;
}

int plugin_main(lua_State *L)
{
	lua_register(L, "HelloWorld", lf_helloworld);
	return 0;
}