Skip to content

Commit 747894c

Browse files
committed
Debug macro improvements, new WebContext macro
1 parent 26d7622 commit 747894c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

MDX2JSON/AbstractREST.cls.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ This is the Schema which defines the form of the dispatch map</Description>
449449
Executes actions and returns device output <br>
450450
pObj - OREF or class<br>
451451
pMethod - instance or class method to execute respectively<br>
452-
pArgs - additional arguments<br>]]></Description>
452+
pArgs - additional arguments]]></Description>
453453
<ClassMethod>1</ClassMethod>
454454
<FormalSpec>pObj,pMethod,pArgs...</FormalSpec>
455455
<ProcedureBlock>0</ProcedureBlock>

MDX2JSON/MDX2JSON.inc.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#include %occErrors
55
#include %ZEN.Utils
66
#define get(%name) $get(%request.Data(%name,1))
7-
#define Debug $d(%request.Data("Debug"))
7+
#define WebContext $d(%request)'=0
8+
#define Debug (($$$WebContext) && ($d(%request.Data("Debug"))))
89
#define R(%property) %request.Content.##Expression(%property)
910
#define Public ((%request.GetCgiEnv("SERVER_PORT") = 80) || (%request.GetCgiEnv("SERVER_PORT") = 443))
1011
#define Private '$$$Public

0 commit comments

Comments
 (0)