Simple sourcemod plugin compile module
npm install smcompTested and working on windows,mac and linux and it is working.
on linux you need the 32-bit libraries.
#### Install 32-bit libraries on ubuntu
sudo apt-get install libstdc++6:i386
#### Installation
npm install smcomp --save
#### Usage
var smcomp = require('smcomp');
var options = {
'-v' : 2,
'-E' : null
};
//The options parameter is optional see the "Options" description in this readme
smcomp.compile('inputfile.sp', 'outputfile.smx', options, function(err, stdout){
if(err) { return console.error(stdout); }
//Success
});
#### Options
-A
-a output assembler code
-c
-e
-h show included file paths
-i
-l create list file (preprocess only)
-o
-O
0 no optimization
2 full optimizations
-p
-r[name] write cross reference report to console or to specified file
-S
-s
-t
-v
-w
-E treat warnings as errors
-X
-XD
-\ use '\' for escape characters
-^ use '^' for escape characters
-;[+/-] require a semicolon to end each statement (default=-)
sym=val define constant "sym" with value "val"
sym= define constant "sym" with value 0
#### Options example
Options without values should be defined as null
var options = {
'-v' : 2,
'-E' : null <--- set to null
};