diff options
| author | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
|---|---|---|
| committer | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
| commit | 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 (patch) | |
| tree | cfbded574ded7c3c666de6211877469ff6a95d75 /src/modules | |
| parent | a0939379bb1185ee6d66739d9d021466d5d89624 (diff) | |
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/modBasic.c | 14 | ||||
| -rw-r--r-- | src/modules/modMove.c | 2 | ||||
| -rw-r--r-- | src/modules/modPipe.c | 4 | ||||
| -rw-r--r-- | src/modules/modTeleport.c | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/modBasic.c b/src/modules/modBasic.c index 5b5e222..a91b7f6 100644 --- a/src/modules/modBasic.c +++ b/src/modules/modBasic.c @@ -24,7 +24,7 @@ int init(export_fce_t *p) { export_fce = p; - printf("[Debug] Initializing Basic module\n"); + debug("Initializing Basic module"); return 0; } @@ -37,26 +37,26 @@ int draw(int x, int y, int w, int h) UNUSED(w); UNUSED(h); - printf("[Debug] Drawing Basic module\n"); + debug("Drawing Basic module"); return 0; } #endif int event() { - printf("[Debug] Basic module catch event\n"); + debug("Basic module catch event"); return 0; } int isConflict(int x, int y, int w, int h) { - printf("[Debug] isConflict(%d, %d, %d, %d) in Basic module\n", x, y, w, h); + debug("isConflict(%d, %d, %d, %d) in Basic module", x, y, w, h); return 0; } static void cmd_basic(char *line) { - printf("[Debug] cmd_basic(%s) in Basic module\n", line); + debug("cmd_basic(%s) in Basic module", line); } void cmdArena(char *line) @@ -67,11 +67,11 @@ void cmdArena(char *line) void recvMsg(char *msg) { - printf("[Debug] recvMsg(%s) in Basic module\n", msg); + debug("recvMsg(%s) in Basic module", msg); } int destroy() { - printf("[Debug] Destroying Basic module\n"); + debug("Destroying Basic module"); return 0; } diff --git a/src/modules/modMove.c b/src/modules/modMove.c index 950995e..7c7a862 100644 --- a/src/modules/modMove.c +++ b/src/modules/modMove.c @@ -49,7 +49,7 @@ static void move_tux(tux_t *tux, int x, int y, int w, int h) dist_y = y + h + 20; break; default: - assert(!_("[Debug] Variable p->control in modMove has a really weird value.\n")); + fatal("Variable p->control in modMove has a really weird value."); break; } diff --git a/src/modules/modPipe.c b/src/modules/modPipe.c index f8d1e1a..dea5ea1 100644 --- a/src/modules/modPipe.c +++ b/src/modules/modPipe.c @@ -181,7 +181,7 @@ static void moveShotFromPipe(shot_t *shot, pipe_t *pipe) distPipe = space_get_object_id(spacePipe, pipe->id_out); if (distPipe == NULL) { - fprintf(stderr, "[Error] Pipe ID was not found [%d]\n", pipe->id); + error("Pipe ID was not found [%d]", pipe->id); return; } @@ -243,7 +243,7 @@ static int negPosition(int n) return TUX_UP; default: - assert(!_("[Error] Tux is probably moving in another dimension")); + fatal("Tux is probably moving in another dimension"); break; } diff --git a/src/modules/modTeleport.c b/src/modules/modTeleport.c index f363923..289f553 100644 --- a/src/modules/modTeleport.c +++ b/src/modules/modTeleport.c @@ -188,7 +188,7 @@ static int getRandomPosition() return TUX_DOWN; } - assert(!_("[Error] Generated a random number which is not in range 0 to 3")); + fatal("Generated a random number which is not in range 0 to 3"); return -1; /* no warnings */ } |