* renamed DefinitionType to DefinitionKind * passing DefinitionKind from Java to C++ instead of just a single bool * omitting to create a symbol for undefined types fortune cookie message = Happy news is on the way to you.
21 lines
346 B
C++
21 lines
346 B
C++
#include "data/DefinitionKind.h"
|
|
|
|
int definitionKindToInt(DefinitionKind definitionKind)
|
|
{
|
|
return definitionKind;
|
|
}
|
|
|
|
DefinitionKind intToDefinitionKind(int definitionKind)
|
|
{
|
|
switch (definitionKind)
|
|
{
|
|
case 0:
|
|
return DEFINITION_NONE;
|
|
case 1:
|
|
return DEFINITION_IMPLICIT;
|
|
case 2:
|
|
return DEFINITION_EXPLICIT;
|
|
}
|
|
return DEFINITION_NONE;
|
|
}
|