4252
This commit is contained in:
parent
91fe63cdc1
commit
8f97725d00
|
@ -94,7 +94,7 @@
|
|||
// Types
|
||||
// End Types
|
||||
|
||||
// Function prototypes are auto-generated in the 'build' script; define your
|
||||
// Function prototypes are auto-generated in the 'build*' scripts; define your
|
||||
// functions in any order. Just be sure to declare each function header all on
|
||||
// one line, ending with the '{'. Our auto-generation scripts are too minimal
|
||||
// and simple-minded to handle anything else.
|
||||
|
@ -103,7 +103,7 @@
|
|||
// Globals
|
||||
//
|
||||
// All statements in this section should always define a single variable on a
|
||||
// single line. The 'build' script will simple-mindedly auto-generate extern
|
||||
// single line. The 'build*' scripts will simple-mindedly auto-generate extern
|
||||
// declarations for them. Remember to define (not just declare) constants with
|
||||
// extern linkage in this section, since C++ global constants have internal
|
||||
// linkage by default.
|
||||
|
|
|
@ -67,7 +67,7 @@ while (argc > 1 && starts_with(*arg, "--")) {
|
|||
//: anywhere we like as long as we format the function header in a specific
|
||||
//: way: put it all on a single line without indent, end the line with ') {'
|
||||
//: and no trailing whitespace. As long as functions uniformly start this
|
||||
//: way, our 'build' script contains a little command to automatically
|
||||
//: way, our 'build*' scripts contain a little command to automatically
|
||||
//: generate declarations for them.
|
||||
:(code)
|
||||
bool is_equal(char* s, const char* lit) {
|
||||
|
|
|
@ -13,7 +13,7 @@ typedef void (*test_fn)(void);
|
|||
:(before "Globals")
|
||||
// move a global ahead into types that we can't generate an extern declaration for
|
||||
const test_fn Tests[] = {
|
||||
#include "test_list" // auto-generated; see 'build' script
|
||||
#include "test_list" // auto-generated; see 'build*' scripts
|
||||
};
|
||||
|
||||
:(before "End Globals")
|
||||
|
|
Loading…
Reference in New Issue