Created
May 24, 2012 09:59
-
-
Save sam-mccall/2780569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "dart_api.h" | |
DART_EXPORT Dart_Handle bug_Init(Dart_Handle parent_library) { | |
Dart_CreateNativeWrapperClass(parent_library, Dart_NewString("C"), 1); | |
return parent_library; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import('dart-ext:bug'); | |
class C {} | |
main() => new C(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DART_INCLUDE=$HOME/dart/source/runtime/include | |
g++ -O2 -DDART_SHARED_LIB -I$DART_INCLUDE -rdynamic -shared -fPIC -m32 bug.c -o libbug.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
../runtime/vm/object.h:1668: error: expected: raw() != null() | |
Aborted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment