Skip to content

Commit

Permalink
Moved the "public API" comment to what is now, in fact, the real publ…
Browse files Browse the repository at this point in the history
…ic API. :)
  • Loading branch information
icculus committed Feb 15, 2009
1 parent 95bf701 commit 5b14d15
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions mojoshader_preprocessor.c
Expand Up @@ -1018,11 +1018,6 @@ const char *preprocessor_sourcepos(Preprocessor *_ctx, unsigned int *pos)
} // preprocessor_sourcepos


// public API...

static const MOJOSHADER_preprocessData out_of_mem_data_preprocessor = {
1, &MOJOSHADER_out_of_mem_error, 0, 0, 0, 0, 0
};

#define BUFFER_LEN (64 * 1024)
typedef struct BufferList
Expand Down Expand Up @@ -1174,6 +1169,13 @@ static MOJOSHADER_error *build_errors(ErrorList **errors, const int count,
} // build_errors


static const MOJOSHADER_preprocessData out_of_mem_data_preprocessor = {
1, &MOJOSHADER_out_of_mem_error, 0, 0, 0, 0, 0
};


// public API...

const MOJOSHADER_preprocessData *MOJOSHADER_preprocess(const char *filename,
const char *source, unsigned int sourcelen,
const MOJOSHADER_preprocessorDefine **defines,
Expand Down

0 comments on commit 5b14d15

Please sign in to comment.