diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-13 13:54:14 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-14 11:24:09 -0800 |
| commit | 4cc1e31f74e2714c10ca06daa7a446a32fda6b2a (patch) | |
| tree | 8c5a214ba396a08f472efbd5a5460f4617d498a2 /src/rt/rust_builtin.cpp | |
| parent | c4c89dd68475a0f2fb227abdda854760a2cd8459 (diff) | |
| download | rust-4cc1e31f74e2714c10ca06daa7a446a32fda6b2a.tar.gz rust-4cc1e31f74e2714c10ca06daa7a446a32fda6b2a.zip | |
rt: Add a Rust callback debugging function
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index a3101e7edc9..0b4ce047997 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -654,6 +654,13 @@ rust_dbg_lock_signal(lock_and_signal *lock) { lock->signal(); } +typedef void *(*dbg_callback)(void*); + +extern "C" CDECL void * +rust_dbg_call(dbg_callback *cb, void *data) { + return (*cb)(data); +} + // // Local Variables: // mode: C++ |
