Add json support
[ric-plt/xapp-frame-cpp.git] / doc / src / lib / setup.im
index a99d6d7..07d4f7c 100644 (file)
        .gv e OUTPUT_TYPE ot
        .im  &{lib}/&{ot}.im
 
+       .gv e XFM_PASS pass
+       .dv pass &{pass!1}
+
+
+       .**  define a 'subroutine' to add a variable and place it into the forward reference file
+       .**  fref_sub.ca contains code to execute by the set_fref macor and fref.ca contains the
+       .**  forward references to include during pass2. The macro set_ref will define the variable
+       .**  passed as $1 (name) with the value passed as $2 and will add it to the fref.ca file.
+       .**
+.ca shift start fref_sub.ca
+       .ca expand extend fref.ca
+       .dv &vname &vval
+       .ca end
+.ca end
+       .dv set_fref .dv vname $1 ^: .dv vval $2 ^: .dv $1 $2 ^: .im fref_sub.ca
+
+
+       .if &pass 2 =
+               .im fref.ca
+       .ei
+               .** initialise the forward ref file
+               .ca start fref.ca
+                       .** forward reference variables; auto generated
+.ca end
+       .fi
+
 
        .** set up for an index when using pfm and snare file is defined
        .if pfm