Browse Source

Sandbox example placeholder

v1.0-maintenance
Sami Vaarala 10 years ago
parent
commit
96c3ae830f
  1. 7
      dist-files/Makefile.sandbox
  2. 5
      examples/sandbox/README.rst
  3. 17
      examples/sandbox/sandbox.c

7
dist-files/Makefile.sandbox

@ -0,0 +1,7 @@
#
# Example Makefile for building the sandbox example
#
sandbox:
gcc -o $@ -std=c99 -O2 -Wall -Wextra -Isrc/ \
src/duktape.c examples/sandbox/sandbox.c -lm

5
examples/sandbox/README.rst

@ -0,0 +1,5 @@
===============
Sandbox example
===============
Very simple, minimal sandboxing example.

17
examples/sandbox/sandbox.c

@ -0,0 +1,17 @@
/*
* Sandboxing example
*/
#include <stdio.h>
#include <stdlib.h>
#include "duktape.h"
int main(int argc, char *argv[]) {
/* FIXME */
/* Suppress warnings. */
(void) argc;
(void) argv;
return 1;
}
Loading…
Cancel
Save