diff src/clojure/clojure.c @ 48:75349da4c344

clojure hello world works
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 00:36:53 -0600
parents b1969e1b310d
children
line wrap: on
line diff
     1.1 --- a/src/clojure/clojure.c	Wed Mar 07 00:13:50 2012 -0600
     1.2 +++ b/src/clojure/clojure.c	Wed Mar 07 00:36:53 2012 -0600
     1.3 @@ -1,7 +1,26 @@
     1.4  #include "com_aurellem_gb_Gb.h"
     1.5  
     1.6 +#define UNUSED(x)  (void)(x)
     1.7  
     1.8  
     1.9 +/*
    1.10 + * Class:     com_aurellem_gb_Gb
    1.11 + * Method:    sayHello
    1.12 + * Signature: ()V
    1.13 + */
    1.14 +JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_sayHello
    1.15 +(JNIEnv *env, jclass clazz){
    1.16 +  UNUSED(env);UNUSED(clazz);
    1.17 +  printf("Hello from GB\n");  
    1.18 +}
    1.19  
    1.20 +/*
    1.21 + * Class:     com_aurellem_gb_Gb
    1.22 + * Method:    startEmulator
    1.23 + * Signature: (Ljava/lang/String;)V
    1.24 + */
    1.25 +JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_startEmulator
    1.26 +(JNIEnv *env, jclass clazz, jstring str){
    1.27 +  UNUSED(env);UNUSED(clazz);UNUSED(str);
    1.28 +}
    1.29  
    1.30 -