comparison 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
comparison
equal deleted inserted replaced
59:3ce48d803e74 60:ef59aee6d715
121 return getRamSize(); 121 return getRamSize();
122 } 122 }
123 123
124 124
125 125
126 /*
127 * Class: com_aurellem_gb_Gb
128 * Method: getRAM
129 * Signature: ([I)V
130 */
131 JNIEXPORT void JNICALL Java_com_aurellem_gb_Gb_getRAM
132 (JNIEnv *env, jclass clazz, jintArray arr){
133 jint *ram_store = env->GetIntArrayElements(arr, 0);
134 storeRam(ram_store);
135 env->ReleaseIntArrayElements(arr, ram_store, 0);
136 }
126 137
127 138
128 139
129