[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /secure/simul_efun/debug.c</h2>
Debugging simul efuns.
<p>Written by Ceres
<h2>Method index</h2>
<dl><ul>
<li><a href="#debug_printf">debug_printf</a>(string, mixed args)<br/>
This method will generate a debug inform for any creators in the room
where it is generated.
<li><a href="#tell_creator">tell_creator</a>(mixed, string, mixed args)<br/>
This method writes a message to a creator, it's mainly meant 
for debug messages where sending a message to a specific 
creator is smarter than sending it to players, who will only get confused.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="debug_printf">
debug_printf</a><pre>
void debug_printf(string fmt,
                  mixed args ...)
</pre></br>
This method will generate a debug inform for any creators in the room
where it is generated.  It will always attempt to identify the room
that the event should be sent to.

<br/><ul>
<li><b>Parameters:</b>
<br/>all - printf style parameters
<li><b>See also:</b>
<br/>printf
.c<li><b>Example:</b>
<br/><pre>#ifdef DEBUG
  debug_printf("Error, player is: %O\n", player);
#endif
</pre></dl>

<ul><a name="tell_creator">
tell_creator</a><pre>
varargs void tell_creator(mixed cres,
                          string fmt,
                          mixed args ...)
</pre></br>
This method writes a message to a creator, it's mainly meant 
for debug messages where sending a message to a specific 
creator is smarter than sending it to players, who will only get confused.

Typically you should use debug_printf() instead of this.

<br/><ul>
<li><b>Parameters:</b>
<br/>cre - the name or object to send the message to
<br/>fmt - the format string
<br/>args - the arguments to the sprintf

<li><b>See also:</b>
<br/>debug_printf
.c</dl>


[an error occurred while processing this directive]

