projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2007-10-19 Nagappan A <anagappan@novell.com>
[mono.git]
/
docs
/
internal-calls
diff --git
a/docs/internal-calls
b/docs/internal-calls
index 1fed33078e49e4b89b31ed7f45a335f2ae0ae859..52c3ef12343ea013ad58d80192b078be6ab05e9e 100644
(file)
--- a/
docs/internal-calls
+++ b/
docs/internal-calls
@@
-62,13
+62,11
@@
* How to hook internal calls with the runtime
Once you require an internal call in corlib, you need to
* How to hook internal calls with the runtime
Once you require an internal call in corlib, you need to
- create a C implementation for it and register it in a static
- table in metadata/icall.c. Add an entry in the table like:
+ create a C implementation for it and register it in a
+ table in metadata/icall-def.h. See the top of that file
+ for more information.
- "System.String::GetHashCode", ves_icall_System_String_GetHashCode,
-
- Note that you need to include the full namespace.name of the
- class. If there are overloaded methods, you need also to
+ If there are overloaded methods, you need also to
specify the signature of _all_ of them:
[MethodImplAttribute(MethodImplOptions.InternalCall)]
specify the signature of _all_ of them:
[MethodImplAttribute(MethodImplOptions.InternalCall)]
@@
-76,9
+74,9
@@
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern override void DoSomething (bool useful);
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public extern override void DoSomething (bool useful);
- should be mapped with:
+ should be mapped with
the following method names
:
- "
Namespace.ClassName::
DoSomething()", ves_icall_Namespace_ClassName_DoSomething,
- "
Namespace.ClassName::
DoSomething(bool)", ves_icall_Namespace_ClassName_DoSomething_bool,
+ "DoSomething()", ves_icall_Namespace_ClassName_DoSomething,
+ "DoSomething(bool)", ves_icall_Namespace_ClassName_DoSomething_bool,