diff src/clojure/clojure.cpp @ 60:ef59aee6d715

added function to retrieve main RAM
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 19:29:51 -0600
parents 3ce48d803e74
children dc8b383ecefa
line wrap: on
line diff
     1.1 --- a/src/clojure/clojure.cpp	Wed Mar 07 17:40:00 2012 -0600
     1.2 +++ b/src/clojure/clojure.cpp	Wed Mar 07 19:29:51 2012 -0600
     1.3 @@ -123,7 +123,17 @@
     1.4  
     1.5  
     1.6  
     1.7 +/*
     1.8 + * Class:     com_aurellem_gb_Gb
     1.9 + * Method:    getRAM
    1.10 + * Signature: ([I)V
    1.11 + */
    1.12 +JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_getRAM
    1.13 +(JNIEnv *env, jclass clazz, jintArray arr){
    1.14 +  jint *ram_store = env->GetIntArrayElements(arr, 0);
    1.15 +  storeRam(ram_store);
    1.16 +  env->ReleaseIntArrayElements(arr, ram_store, 0);
    1.17 +}
    1.18  
    1.19  
    1.20  
    1.21 -