search for: my_glob

Displaying 5 results from an estimated 5 matches for "my_glob".

Did you mean: mem_glob
2013 Jan 20
1
[LLVMdev] Get the value of a GlobalVariable
...a C program using JIT. When the program exits, the control comes back to my program which initiates the JIT. Now, I want to read the value(not the LLVM nomenclature) of a global variable (not the LLVM nomenclature). I am able to get the global variable, using the following command: GlobalVariable *my_global = Mod->getNamedGlobal("MY_GLOBAL"); I want to know the value which was stored in this variable, I use the following command, but it gives error: APInt value = my_global->getValue(); Error is: llvm/lib/IR/Constants.cpp:1257: llvm::Constant *llvm::Constant::getSplatValue() const:...
2007 Aug 21
7
mocking singletons
How can I safely mock a singleton without the mocked method living on outside the scope of the test method? I''ve run into this problem with mocking methods on globals (gasp!) in the past by doing something like def mock_my_global original = $my_global $my_global.expects(:foo).returns(''bar'') yield $my_global = original end Is there something similar I can do for a singleton? Right now I have this: def mock_my_singleton m = mock("my singleton") m.expects(:foo).returns('&...
2006 Jan 30
3
RMySQL install
...ot at BX mtaylor]# ls /usr/include/mysql chardefs.h m_ctype.h my_dir.h my_no_pthread.h mysql_embed.h my_xml.h rlshell.h sslopt-longopts.h errmsg.h m_string.h my_getopt.h my_pthread.h mysql.h raid.h rltypedefs.h sslopt-vars.h history.h my_alloc.h my_global.h my_semaphore.h mysql_time.h readline.h sql_common.h tilde.h keycache.h my_config.h my_list.h mysql_com.h mysql_version.h rlmbutil.h sql_state.h typelib.h keymaps.h my_dbug.h my_net.h mysqld_error.h my_sys.h rlprivate.h sslopt-case.h xmalloc.h...
2005 Jun 29
1
Can't build cdr_addon_mysql.
...root 28423 May 13 06:14 my_config.h -rw-r--r-- 1 root root 3463 May 13 06:14 my_dbug.h -rw-r--r-- 1 root root 3509 May 13 06:14 my_dir.h -rw-r--r-- 1 root root 3000 May 13 06:14 my_getopt.h -rw-r--r-- 1 root root 38891 May 13 06:14 my_global.h -rw-r--r-- 1 root root 1510 May 13 06:14 my_list.h -rw-r--r-- 1 root root 3588 May 13 06:14 my_net.h -rw-r--r-- 1 root root 1245 May 13 06:14 my_no_pthread.h -rw-r--r-- 1 root root 24524 May 13 06:14 my_pthread.h -rw-r--r-- 1 root...
2005 Jul 05
0
Problem installing RMySQL_0.5-5
...20 language R R 2.1.1 (2005-06-20). I export paths: # export PKG_CPPFLAGS="-I/opt/lampp/include/mysql" containing: errmsg.h my_dir.h my_semaphore.h my_sys.h sslopt- longopts.h keycache.h my_getopt.h mysql_com.h my_xml.h sslopt- vars.h m_ctype.h my_global.h mysqld_error.h raid.h typelib.h m_string.h my_list.h mysql_embed.h readline.h my_alloc.h my_net.h mysql.h sql_common.h my_config.h my_no_pthread.h mysql_time.h sql_state.h my_dbug.h my_pthread.h mysql_version.h sslopt-case.h # export...