Skip to content

Commit 9f726e1

Browse files
CoryCharltonjosesimoes
authored andcommitted
Update signatures for nanoframework/CoreLibrary#219
1 parent 289e9ba commit 9f726e1

File tree

2 files changed

+96
-2
lines changed

2 files changed

+96
-2
lines changed

src/CLR/CorLib/corlib_native.cpp

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,26 @@ static const CLR_RT_MethodHandler method_lookup[] =
491491
NULL,
492492
NULL,
493493
NULL,
494+
NULL,
495+
NULL,
496+
NULL,
497+
NULL,
498+
NULL,
499+
NULL,
500+
NULL,
501+
NULL,
502+
NULL,
503+
NULL,
504+
NULL,
505+
NULL,
506+
NULL,
507+
NULL,
508+
NULL,
509+
NULL,
510+
NULL,
511+
NULL,
512+
NULL,
513+
NULL,
494514
Library_corlib_native_System_Diagnostics_Debug::WriteLineNative___STATIC__VOID__STRING__BOOLEAN,
495515
Library_corlib_native_System_Diagnostics_Debugger::get_IsAttached___STATIC__BOOLEAN,
496516
Library_corlib_native_System_Diagnostics_Debugger::Break___STATIC__VOID,
@@ -681,6 +701,8 @@ static const CLR_RT_MethodHandler method_lookup[] =
681701
NULL,
682702
NULL,
683703
NULL,
704+
NULL,
705+
NULL,
684706
Library_corlib_native_System_Runtime_CompilerServices_RuntimeHelpers::InitializeArray___STATIC__VOID__SystemArray__SystemRuntimeFieldHandle,
685707
Library_corlib_native_System_Runtime_CompilerServices_RuntimeHelpers::GetObjectValue___STATIC__OBJECT__OBJECT,
686708
Library_corlib_native_System_Runtime_CompilerServices_RuntimeHelpers::RunClassConstructor___STATIC__VOID__SystemRuntimeTypeHandle,
@@ -1238,6 +1260,26 @@ static const CLR_RT_MethodHandler method_lookup[] =
12381260
NULL,
12391261
NULL,
12401262
NULL,
1263+
NULL,
1264+
NULL,
1265+
NULL,
1266+
NULL,
1267+
NULL,
1268+
NULL,
1269+
NULL,
1270+
NULL,
1271+
NULL,
1272+
NULL,
1273+
NULL,
1274+
NULL,
1275+
NULL,
1276+
NULL,
1277+
NULL,
1278+
NULL,
1279+
NULL,
1280+
NULL,
1281+
NULL,
1282+
NULL,
12411283
Library_corlib_native_System_Diagnostics_Debug::WriteLineNative___STATIC__VOID__STRING__BOOLEAN,
12421284
Library_corlib_native_System_Diagnostics_Debugger::get_IsAttached___STATIC__BOOLEAN,
12431285
Library_corlib_native_System_Diagnostics_Debugger::Break___STATIC__VOID,
@@ -1360,6 +1402,8 @@ static const CLR_RT_MethodHandler method_lookup[] =
13601402
NULL,
13611403
NULL,
13621404
NULL,
1405+
NULL,
1406+
NULL,
13631407
Library_corlib_native_System_Runtime_CompilerServices_RuntimeHelpers::InitializeArray___STATIC__VOID__SystemArray__SystemRuntimeFieldHandle,
13641408
Library_corlib_native_System_Runtime_CompilerServices_RuntimeHelpers::GetObjectValue___STATIC__OBJECT__OBJECT,
13651409
Library_corlib_native_System_Runtime_CompilerServices_RuntimeHelpers::RunClassConstructor___STATIC__VOID__SystemRuntimeTypeHandle,
@@ -1487,11 +1531,11 @@ const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_mscorlib =
14871531

14881532
#if (NANOCLR_REFLECTION == TRUE)
14891533

1490-
0xC5D5F755,
1534+
0x8CBE21C8,
14911535

14921536
#elif (NANOCLR_REFLECTION == FALSE)
14931537

1494-
0x29A4F740,
1538+
0x56E0B08B,
14951539

14961540
#else
14971541
#error "NANOCLR_REFLECTION has to be define either TRUE or FALSE. Check the build options."

src/CLR/CorLib/corlib_native.h

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,49 @@ struct Library_corlib_native_System_Delegate
536536
static CLR_RT_HeapBlock_Delegate *GetLastDelegate(CLR_RT_HeapBlock_Delegate *dlg);
537537
};
538538

539+
struct Library_corlib_native_System_Diagnostics_CodeAnalysis_DoesNotReturnIfAttribute
540+
{
541+
static const int FIELD___parameterValue = 1;
542+
543+
//--//
544+
};
545+
546+
struct Library_corlib_native_System_Diagnostics_CodeAnalysis_MaybeNullWhenAttribute
547+
{
548+
static const int FIELD___returnValue = 1;
549+
550+
//--//
551+
};
552+
553+
struct Library_corlib_native_System_Diagnostics_CodeAnalysis_MemberNotNullAttribute
554+
{
555+
static const int FIELD___members = 1;
556+
557+
//--//
558+
};
559+
560+
struct Library_corlib_native_System_Diagnostics_CodeAnalysis_MemberNotNullWhenAttribute
561+
{
562+
static const int FIELD___returnValue = 1;
563+
static const int FIELD___members = 2;
564+
565+
//--//
566+
};
567+
568+
struct Library_corlib_native_System_Diagnostics_CodeAnalysis_NotNullIfNotNullAttribute
569+
{
570+
static const int FIELD___parameterName = 1;
571+
572+
//--//
573+
};
574+
575+
struct Library_corlib_native_System_Diagnostics_CodeAnalysis_NotNullWhenAttribute
576+
{
577+
static const int FIELD___returnValue = 1;
578+
579+
//--//
580+
};
581+
539582
struct Library_corlib_native_System_Diagnostics_Debug
540583
{
541584
NANOCLR_NATIVE_DECLARE(WriteLineNative___STATIC__VOID__STRING__BOOLEAN);
@@ -816,6 +859,13 @@ struct Library_corlib_native_System_Runtime_CompilerServices_AccessedThroughProp
816859
//--//
817860
};
818861

862+
struct Library_corlib_native_System_Runtime_CompilerServices_CallerArgumentExpressionAttribute
863+
{
864+
static const int FIELD___parameterName = 1;
865+
866+
//--//
867+
};
868+
819869
struct Library_corlib_native_System_Runtime_CompilerServices_RuntimeHelpers
820870
{
821871
NANOCLR_NATIVE_DECLARE(InitializeArray___STATIC__VOID__SystemArray__SystemRuntimeFieldHandle);

0 commit comments

Comments
 (0)