| 83 | int m_lastLineSaved; // dont add OpCode::DebugLine for every expression, but rather only when astNode->line != m_lastLineSaved |
| 84 | |
| 85 | inline void m_exportLine(const M4::HLSLNode* node, bool force = false) |
| 86 | { |
| 87 | if (!node) |
| 88 | return; |
| 89 | |
| 90 | if ((m_lastLineSaved != node->line || force) && m_curFuncData != nullptr) { |
| 91 | m_gen.Function.DebugLineNumber(node->line); |
| 92 | m_lastLineSaved = node->line; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | bool m_isInsideBuffer; |
| 97 |
nothing calls this directly
no outgoing calls
no test coverage detected