mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
10 years ago
3 changed files with 29 additions and 0 deletions
@ -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 |
@ -0,0 +1,5 @@ |
|||
=============== |
|||
Sandbox example |
|||
=============== |
|||
|
|||
Very simple, minimal sandboxing example. |
@ -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…
Reference in new issue