fixes for amigaos compiler
This commit is contained in:
parent
f4da6bb33f
commit
6f394e7f7d
2 changed files with 3 additions and 2 deletions
|
@ -36,6 +36,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "common/util.h"
|
#include "common/util.h"
|
||||||
|
#include "common/debug.h"
|
||||||
#include "engine/backend/fs/abstract-fs.h"
|
#include "engine/backend/fs/abstract-fs.h"
|
||||||
|
|
||||||
#define ENTER() /* debug(6, "Enter") */
|
#define ENTER() /* debug(6, "Enter") */
|
||||||
|
|
|
@ -270,7 +270,7 @@ static void FunctionName() {
|
||||||
const char *name;
|
const char *name;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
const char *filename;
|
const char *filename;
|
||||||
int line;
|
int32 line;
|
||||||
|
|
||||||
DEBUG_FUNCTION();
|
DEBUG_FUNCTION();
|
||||||
if (!lua_isfunction(lua_getparam(1))) {
|
if (!lua_isfunction(lua_getparam(1))) {
|
||||||
|
@ -294,7 +294,7 @@ static void FunctionName() {
|
||||||
else if (line < 0)
|
else if (line < 0)
|
||||||
sprintf(buf, "%.100s", filename);
|
sprintf(buf, "%.100s", filename);
|
||||||
else {
|
else {
|
||||||
sprintf(buf, "function (%.100s:%d)", filename, line);
|
sprintf(buf, "function (%.100s:%d)", filename, (int)line);
|
||||||
filename = NULL;
|
filename = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue