/+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.c

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-09 20:30:16 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140109203016-bik0xf85li4gglym
woops.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#include <string.h>
3
3
#include "JSParser.h"
4
4
 
5
 
 
 
5
/**
 
6
 * This file, as the rest of the project is under MIT license.
 
7
 * see http://opensource.org/licenses/MIT
 
8
 *
 
9
 * Author Gustav Hartvigsson <gustav.hartvigsson _at_ gmail.com> 2014
 
10
 */
6
11
 
7
12
/*
8
13
  The global JS Class.
35
40
"WARNING: No script or file is set when constructing GameJSParser\n"
36
41
"============================================================================\n"
37
42
    );
38
 
  } else {
39
 
    game_js_parser_free (self);
40
 
    return NULL;
41
43
  }
42
44
  
43
45
  self->js_rt = JS_NewRuntime (JS_RUNTIME_SIZE);
66
68
  if (!self->js_global) {
67
69
    fprintf (stderr,
68
70
"============================================================================\n"
69
 
"Could not contruct JS runtime the global object.\n"
 
71
"Could not contruct the JS runtime global object.\n"
70
72
"============================================================================\n"
71
73
    );
72
74
    game_js_parser_free (self);