/+junk/c_sdl_joypad

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad

« back to all changes in this revision

Viewing changes to JSParser.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-09 20:07:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140109200752-owx481zfl2n4tjsc
* added and changed little in the files Lincening information.
* Started to implement the JS parser's C file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 * This file, as the rest of the project is under MIT license.
9
9
 * see http://opensource.org/licenses/MIT
10
10
 *
11
 
 * Author Gustav Hartvigsson <gustav.hartvigsson _at_ gmail.com> 2013
 
11
 * Author Gustav Hartvigsson <gustav.hartvigsson _at_ gmail.com> 2014
12
12
 *
13
13
 * Thanks to:
14
14
 * https://btwotch.wordpress.com/2013/03/05/embedding-javascript-via-spidermonkey-into-c/
18
18
#include "Game.h"
19
19
 
20
20
/**
 
21
 * The maximum size of the memory after which GC is run.
 
22
 */
 
23
#define JS_RUNTIME_SIZE 1024*64
 
24
 
 
25
/******************************************************************************/
 
26
 
 
27
/**
21
28
 * Function prototype to be used for loading context data, this is user-defined
22
29
 * so any data can be loaded into the JS context.
23
30
 */
49
56
  char * game_script;
50
57
} GameJSParser;
51
58
 
 
59
/******************************************************************************/
 
60
 
52
61
/**
53
62
 * Need to know a bit about the game, like screen and renderer and such.
54
63
 *
97
106
 
98
107
void game_js_parser_run (GameJSParser * self);
99
108
 
 
109
/******************************************************************************/
 
110
 
 
111
 
100
112
#endif