ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
|
Last change
on this file since 0d10090 was 0d10090, checked in by Aaron Moss <a3moss@…>, 9 years ago |
|
Add printing code to benchmark
|
-
Property mode
set to
100644
|
|
File size:
426 bytes
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include <stdio.h>
|
|---|
| 4 | #include "pair"
|
|---|
| 5 |
|
|---|
| 6 | forall(otype T, ttype Params | { void print(FILE*, T); void print(FILE*, Params); })
|
|---|
| 7 | void print(FILE* out, T arg, Params rest);
|
|---|
| 8 |
|
|---|
| 9 | void print(FILE* out, const char* x);
|
|---|
| 10 |
|
|---|
| 11 | void print(FILE* out, _Bool x);
|
|---|
| 12 |
|
|---|
| 13 | void print(FILE* out, char x);
|
|---|
| 14 |
|
|---|
| 15 | void print(FILE* out, int x);
|
|---|
| 16 |
|
|---|
| 17 | forall(otype R, otype S | { void print(FILE*, R); void print(FILE*, S); })
|
|---|
| 18 | void print(FILE* out, pair(R, S) x);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.