Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- report<>;
- Creates report flags.
- Example :
- void main() {
- report<
- __r
- writeln("Hello World!");
- __r
- >;
- }
- // Output
- /*
- #1 report executed!
- Hello World!
- #2 report executed!
- */
- Example 2:
- void main() {
- report<
- __rBEGIN
- writeln("Hello World!");
- __rEND
- >;
- }
- // Output
- /*
- BEGIN report executed!
- Hello World!
- END report executed!
- */
- Example 3:
- void main() {
- int a = 5;
- int b = 10;
- int c = a + b;
- report<
- __va,b,c
- >;
- }
- // Output
- /*
- a is '5', b is '10', c is '15'
- */
- Example 4:
- void main() {
- report<
- __rONE
- __r
- writeln("Hello World!");
- __r
- __rFOUR
- >;
- }
- // Output
- /*
- ONE report executed!
- #2 report executed!
- Hello World!
- #3 report executed!
- FOUR report executed!
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement