Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tools/slang-fiddle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ An idiomatic approach would be something like:
class $T;
%end
#else // FIDDLE OUTPUT:
#endif
// Fiddle output goes here.
#endif // FIDDLE END
```

For the template part of things, you can write lines of more-or-less ordinary C++ code, interspersed with two kinds of script code:
Expand All @@ -151,7 +152,7 @@ For example, given the input above, the generated output for the template might
#else // FIDDLE OUTPUT:
#define FIDDLE_TEMPLATE_OUTPUT_ID 0
#include "my-class-forward-decls.h.fiddle"
#endif
#endif // FIDDLE END
```

Inside templates there is a global defined `THIS_FILE` which is the file path
Expand Down
Loading