Mercurial > vba-clojure
diff src/clojure/clojure.cpp @ 59:3ce48d803e74
added functions to get rom/ram sizes
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 07 Mar 2012 17:40:00 -0600 |
parents | ba4fdfb722ed |
children | ef59aee6d715 |
line wrap: on
line diff
1.1 --- a/src/clojure/clojure.cpp Wed Mar 07 15:17:19 2012 -0600 1.2 +++ b/src/clojure/clojure.cpp Wed Mar 07 17:40:00 2012 -0600 1.3 @@ -101,8 +101,29 @@ 1.4 } 1.5 1.6 1.7 +/* 1.8 + * Class: com_aurellem_gb_Gb 1.9 + * Method: getROMSize 1.10 + * Signature: ()I 1.11 + */ 1.12 +JNIEXPORT jint JNICALL Java_com_aurellem_gb_Gb_getROMSize 1.13 +(JNIEnv *env, jclass clazz){ 1.14 + return getRomSize(); 1.15 +} 1.16 1.17 +/* 1.18 + * Class: com_aurellem_gb_Gb 1.19 + * Method: getRAMSize 1.20 + * Signature: ()I 1.21 + */ 1.22 +JNIEXPORT jint JNICALL Java_com_aurellem_gb_Gb_getRAMSize 1.23 +(JNIEnv *env, jclass clazz){ 1.24 + return getRamSize(); 1.25 +} 1.26 1.27 1.28 1.29 1.30 + 1.31 + 1.32 +