Skip to content

Commit

Permalink
Add IsHPCGAP global Constant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed Sep 16, 2017
1 parent b7d1545 commit f245a79
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2998,12 +2998,20 @@ static Int InitLibrary (
/* create windows command buffer */
WindowCmdString = NEW_STRING( 1000 );

UInt isvar = GVarName( "IsHPCGAP" );

#ifdef HPCGAP
UInt var = GVarName( "HPCGAP" );
AssGVar( var, True );
MakeReadOnlyGVar( var );
MakeConstantGVar( var );

AssGVar( isvar, True );
#else
AssGVar( isvar, False );
#endif

MakeConstantGVar(isvar);

/* return success */
return PostRestore( module );
}
Expand Down

0 comments on commit f245a79

Please sign in to comment.