| 1234567891011121314151617181920212223242526272829 |
- module system.debugwriteln;
- import std.stdio;
- import core.stdc.stdio;
- import core.stdc.stdarg;
- nothrow void debugWriteln(A...)(A args)
- {
- debug
- {
- try
- {
- writeln("INFO: ENGINE: ", args);
- }
- catch (Exception e)
- {
- debugWriteln("ERROR:", e.msg);
- }
- }
- }
- extern(C) void overlayDebugWriteln(const(char)* format, ...) {
- printf("INFO: OVERLAY: ");
- va_list args;
- va_start(args, format);
- vprintf(format, args);
- va_end(args);
- printf("\n");
- }
|