Skip to content
  • Lyude Paul's avatar
    igt_core: add igt_constructor · 31811f4b
    Lyude Paul authored
    
    
    This is a simple macro for executing a block of code at the beginning of
    intel-gpu-tools, before any tests have been ran. Useful for
    initialization of global resources used in IGT libraries.
    
    Signed-off-by: Lyude Paul's avatarLyude <lyude@redhat.com>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    
    Changes since v1:
     - Add the line number into the name of the constructor function so that
       multiple constructors may be used per-file.
    31811f4b