Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
319 B

using System;
namespace Templates {
[Flags]
public enum Context {
Generic = 0,
Parameter = 1 << 0,
Return = 1 << 1,
Interface = 1 << 2,
Wrapper = 1 << 3
}
public static class ContextExtensions {
public static bool Is (this Context bits, Context bit)
{
return (bits & bit) == bit;
}
}
}