annotate 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
rev   line source
rlm@46 1 #include "com_aurellem_gb_Gb.h"
rlm@46 2
rlm@48 3 #define UNUSED(x) (void)(x)
rlm@46 4
rlm@46 5
rlm@48 6 /*
rlm@48 7 * Class: com_aurellem_gb_Gb
rlm@48 8 * Method: sayHello
rlm@48 9 * Signature: ()V
rlm@48 10 */
rlm@48 11 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_sayHello
rlm@48 12 (JNIEnv *env, jclass clazz){
rlm@48 13 UNUSED(env);UNUSED(clazz);
rlm@48 14 printf("Hello from GB\n");
rlm@48 15 }
rlm@46 16
rlm@48 17 /*
rlm@48 18 * Class: com_aurellem_gb_Gb
rlm@48 19 * Method: startEmulator
rlm@48 20 * Signature: (Ljava/lang/String;)V
rlm@48 21 */
rlm@48 22 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_startEmulator
rlm@48 23 (JNIEnv *env, jclass clazz, jstring str){
rlm@48 24 UNUSED(env);UNUSED(clazz);UNUSED(str);
rlm@48 25 }
rlm@46 26