Skip to content

Commit 482d619

Browse files
loonglyliuyunlong
authored andcommitted
* compile errors.
1 parent 89dd341 commit 482d619

5 files changed

Lines changed: 8 additions & 3 deletions

File tree

BindGenerater/Generater/C/CTypeResolver.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static BaseTypeResolver Resolve(TypeReference _type,bool il2cppType = fal
2222
return new ValueTypeResolver(_type, il2cppType); //TODO ref String
2323
}
2424

25-
if (_type.IsPointer || _type.Name.Equals("IntPtr"))
25+
if (_type.IsPointer || _type.Name.Equals("IntPtr") || _type.Name.Equals("UintPtr"))
2626
return new ValueTypeResolver(_type, il2cppType);
2727

2828
if (_type.IsPrimitive)
@@ -99,6 +99,8 @@ public virtual string TypeName()
9999
case "Char":
100100
return "char";
101101
case "Byte":
102+
return "uint8_t";
103+
case "SByte":
102104
return "int8_t";
103105
}
104106

BindGenerater/Generater/C/ICallGenerater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void register_assembly_map()
100100
*/
101101
private static void RegisterAssemblyMap()
102102
{
103-
CS.Writer.Start("register_assembly_map()");
103+
CS.Writer.Start("void register_assembly_map()");
104104
foreach(var assembly in wrapperAssemblySet)
105105
CS.Writer.WriteLine($"insert_assembly_map(\"{assembly}\", \"Adapter.wrapper\")");
106106
CS.Writer.End();

ScriptEngine/Tools/Binder.exe

0 Bytes
Binary file not shown.

ScriptEngine/Tools/Binder.pdb

203 KB
Binary file not shown.

ScriptEngine/main/runtime.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ void mono_register_icall(void);
237237
void register_assembly_map();
238238

239239
#if RUNTIME_IOS
240+
#define __STRDUP strdup
240241
void mono_ios_runtime_init(void);
242+
#else
243+
#define __STRDUP _strdup
241244
#endif
242245

243246
void mono_debug() {
@@ -254,7 +257,7 @@ void mono_debug() {
254257
int
255258
mono_setup(char* reloadDir, const char* file) {
256259

257-
mono_runtime_reload_path = strdup(reloadDir);
260+
mono_runtime_reload_path = __STRDUP(reloadDir);
258261

259262
int retval = 0;
260263

0 commit comments

Comments
 (0)