generated from eugenesvk/dummy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Include file script for Directory Opus, gpsoft.com.au/DScripts/redirect.asp?page=scripts | ||
function OnInitIncludeFile(D) { // Called by Opus to initialize the include file script | ||
D.name = "Dbg"; | ||
D.desc = "Debug functions"; | ||
D.version = "1.0"; | ||
D.url = "resource.dopus.com/c/buttons-scripts/16"; | ||
D.shared = true; D.min_version = "12.0"; D.copyright = "es"; | ||
} | ||
|
||
function p(text) { // alias to print output | ||
try { if (Script); DOpus.Output(text ); | ||
} catch (e) { DOpus.Output(text,true);} | ||
} | ||
function err(text) { // alias to print error output | ||
try { if (Script); DOpus.Output(text,true); | ||
} catch (e) { DOpus.Output(text,true);} | ||
} | ||
function dbg(text) { // print debug output if script is configured with DebugOutput | ||
try { | ||
if (Script); | ||
if (0 || Script.config.DebugOutput) DOpus.Output(text ); | ||
} catch (e) { DOpus.Output(text, true);} | ||
} | ||
function dbgv(text) { // print verbose debug output if script is configured with DebugVerbose | ||
try { | ||
if (Script); | ||
if (0 || Script.config.DebugVerbose) DOpus.Output(text ); | ||
} catch (e) { DOpus.Output(text, true);} | ||
} |