HandmadeHero/project/platform/generics.hpp
Ed_ 4ab64e2c17 Day 42 complete
Found and fixed bugs with gencpp when generating the vector math stuff.
2023-10-22 22:00:29 -04:00

15 lines
204 B
C++

#pragma once
template< class Type >
void swap( Type& a, Type& b )
{
Type
temp = a;
a = b;
b = temp;
}
#define Zero( type ) tmpl_zero<type>()
template< class Type >
constexpr Type tmpl_zero();