~psmay/+junk/modu.exp.dev

« back to all changes in this revision

Viewing changes to src/general.h

  • Committer: Peter S. May
  • Date: 2010-11-17 22:30:22 UTC
  • Revision ID: pmay@pmay-desktop-20101117223022-x3eo88wg7fflniiu
* bootload.js: A very small loader script to bootstrap others.
* module-spec.js: A poc for inlined module specifications, plus getModuleSpec. To be separated later.
* script-loader.js: A mini-mini loader based on the LABjs meta-loader. This may not last long because of bootload.js.
* sub.h: Use "sub" in place of "function".

* Makefile: Messed with filenames of output to include "modu".
* async-dispatch.js: Fixed - No release handle was generated.
* general.h: Added LOG, document, window macro.
* general.js: Added lexical window and document.
* main.js: Updated with new sources.
* request-module.js: Added moduleTable variable, logging changes.
* util.js: Fixed - @nosideeffects is only allowed in external defs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#ifndef GENERAL_H
3
3
#define GENERAL_H
4
4
 
 
5
#if 0
 
6
#define LOG(args...) console.log(args)
 
7
#else
 
8
#define LOG(args...)
 
9
#endif
 
10
 
5
11
// Some lexical abbreviations defined in general.js
6
12
#define Error __ERROR
7
13
#define TypeError __TYPE_ERROR
8
14
#define setTimeout __SET_TIMEOUT
 
15
#define document __DOCUMENT
 
16
#define window __WINDOW
9
17
#define Object __OBJECT
10
18
#define Array __ARRAY
11
19
#define String __STRING