Monado OpenXR Runtime
Loading...
Searching...
No Matches
vk_generate_inc_files.ConditionalGenerator Class Reference

Public Member Functions

 __init__ (self)
 
Optional[str] process_condition (self, Optional[str] new_condition, bool finish=False)
 
Optional[str] finish (self)
 

Data Fields

 current_condition
 

Detailed Description

Keep track of conditions to avoid unneeded repetition of ifdefs.

Member Function Documentation

◆ finish()

Optional[str] vk_generate_inc_files.ConditionalGenerator.finish (   self)
Return a line (or lines) to yield if required at the end of the loop.

References vk_generate_inc_files.ConditionalGenerator.process_condition().

◆ process_condition()

Optional[str] vk_generate_inc_files.ConditionalGenerator.process_condition (   self,
Optional[str]  new_condition,
bool   finish = False 
)
Return a line (or lines) to yield if required based on the new condition state.

References vk_generate_inc_files.ConditionalGenerator.current_condition.

Referenced by vk_generate_inc_files.ConditionalGenerator.finish().


The documentation for this class was generated from the following file: