summaryrefslogtreecommitdiff
path: root/apps/plugins/lua
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-08-23 17:12:26 +0000
committerThomas Martitz <kugel@rockbox.org>2010-08-23 17:12:26 +0000
commit93cb949372630d807615f53a8a6379937ed6819f (patch)
tree2dcb5001a9247447a1c64fd0129e64b9d8aba4e6 /apps/plugins/lua
parentabdc5935beb7dc3fa63bffeec584921ad2a4c8bd (diff)
Revert "Introduce plugin_crt0.c that every plugin links."
Too much errors and no time to fix them now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r--apps/plugins/lua/rocklua.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c
index 00bfd8e43e..b92c274fb0 100644
--- a/apps/plugins/lua/rocklua.c
+++ b/apps/plugins/lua/rocklua.c
@@ -20,6 +20,7 @@
****************************************************************************/
#include "plugin.h"
+#include "lib/pluginlib_exit.h"
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
@@ -27,7 +28,7 @@
#include "rockmalloc.h"
#include "luadir.h"
-
+PLUGIN_HEADER
static const luaL_Reg lualibs[] = {
{"", luaopen_base},
@@ -147,6 +148,8 @@ enum plugin_status plugin_start(const void* parameter)
const char* filename;
int status;
+ PLUGINLIB_EXIT_INIT
+
if (parameter == NULL)
{
rb->splash(HZ, "Play a .lua file!");