Skip to content

Commit 7ae9036

Browse files
committed
Use macro
1 parent 14fc610 commit 7ae9036

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

TODO.md

+2
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,8 @@
15621562
15631563
380. a built-in terminal-to-gif recorder
15641564
1565+
381. [headless screenshots](https://github.com/schnerd/chrome-headless-screenshots)
1566+
15651567
15661568
---
15671569

tools/snippets/benchmark/c/benchmark.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <math.h>
77
#include <sys/time.h>
88

9+
#define NAME "TODO"
910
#define ITERATIONS 1000000
1011
#define REPEATS 3
1112

@@ -106,7 +107,7 @@ int main( void ) {
106107

107108
print_version();
108109
for ( i = 0; i < REPEATS; i++ ) {
109-
printf( "# c::%s\n", "TODO" );
110+
printf( "# c::%s\n", NAME );
110111
elapsed = benchmark();
111112
print_results( elapsed );
112113
printf( "ok %d benchmark finished\n", i+1 );

0 commit comments

Comments
 (0)