Permalink
Browse files

cleanup

  • Loading branch information...
dividuum committed Sep 12, 2012
1 parent 3102b33 commit 51f5a6f685ff42fd1871eb2bd06b708d5cc29053
Showing with 2 additions and 3 deletions.
  1. +1 −1 image.h
  2. +1 −2 main.c
View
@@ -3,7 +3,7 @@
#ifndef IMAGE_H
#define IMAGE_H
-int image_register (lua_State *L);
+int image_register(lua_State *L);
int image_create(lua_State *L, int tex, int fbo, int width, int height);
int image_from_current_framebuffer(lua_State *L, int width, int height, int mipmap);
int image_load(lua_State *L, const char *path, const char *name);
View
3 main.c
@@ -837,8 +837,7 @@ static void node_init(node_t *node, node_t *parent, const char *path, const char
// If kernel.lua was procompiled with an incompatible lua
// version, loading the embedded code fail here. Try to
// detect this...
- die("cannot load kernel.lua: %s%s",
- lua_tostring(node->L, -1),
+ die("cannot load kernel.lua: %s%s", error,
strstr(error, "bad header") ? " (See 'kernel load error' in the docs)" : ""
);
}

0 comments on commit 51f5a6f

Please sign in to comment.