kernel.core.log



struct Log;
This structure implements the logging for the kernel.

USAGE:
 // DoAThing returns an ErrorVal

 Log.print("Doing a thing");
 Log.result(DoAThing());

 // Will Print:
 //   Doing a thing ........................ [ OK ]
 // or
 //   Doing a thing ........................ [FAIL]


static ErrorVal print(char[] message);
This function prints a message and an error to a log line on the screen.

static ErrorVal result(ErrorVal e);
This function records the result for the last line in the log and then pops it off the stack.


Page generated by Ddoc.