| 119 | } |
| 120 | |
| 121 | SourceMod::SMCResult Structs::ReadSMC_NewSection( const SMCStates *states, const char *name ) |
| 122 | { |
| 123 | if (!m_bInStruct) |
| 124 | { |
| 125 | m_currentStruct = new StructInfo(); |
| 126 | UTIL_Format(m_currentStruct->name, sizeof(m_currentStruct->name), "%s", name); |
| 127 | m_bInStruct = true; |
| 128 | |
| 129 | return SMCResult_Continue; |
| 130 | } |
| 131 | |
| 132 | if (!m_bInMember) |
| 133 | { |
| 134 | m_bInMember = true; |
| 135 | m_currentMember = new MemberInfo(); |
| 136 | UTIL_Format(m_currentMember->name, sizeof(m_currentMember->name), "%s", name); |
| 137 | |
| 138 | return SMCResult_Continue; |
| 139 | } |
| 140 | |
| 141 | g_pSM->LogMessage(myself, "Cannot nest within a member: line: %i col: %i", states->line, states->col); |
| 142 | |
| 143 | return SMCResult_HaltFail; |
| 144 | } |
| 145 | |
| 146 | SourceMod::SMCResult Structs::ReadSMC_KeyValue( const SMCStates *states, const char *key, const char *value ) |
| 147 | { |
nothing calls this directly
no test coverage detected