Skip to content

Commit

Permalink
Disabled the tests for the new code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias247 committed Jan 20, 2014
1 parent 393191d commit 112d01a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/guide-ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ to the C library and afterwards be invoked from there.
A basic example is:

Rust code:
~~~~
~~~~ {.xfail-test}
extern fn callback(a:i32) {
println!("I'm called from C with value {0}", a);
}
Expand All @@ -283,7 +283,7 @@ fn main() {
~~~~

C code:
~~~~
~~~~ {.xfail-test}
typedef void (*rust_callback)(int32_t);
rust_callback cb;
Expand Down Expand Up @@ -314,7 +314,7 @@ the notification. This will provide a unsafe possibility to access the
referenced Rust object in callback.

Rust code:
~~~~
~~~~ {.xfail-test}
struct RustObject {
a: i32,
Expand Down Expand Up @@ -346,7 +346,7 @@ fn main() {
~~~~

C code:
~~~~
~~~~ {.xfail-test}
typedef void (*rust_callback)(int32_t);
void* cb_target;
rust_callback cb;
Expand Down

0 comments on commit 112d01a

Please sign in to comment.