Ejemplo n.º 1
0
 internal CallCount(StubbedModule module)
 {
     this.module = module;
     foreach (FunctionInfo function in module.NativeInterface.Functions)
     {
         initialCount.Add(function.Name, module.GetTotalCallCount(function.Name));
     }
 }
 public static StubbedModule Create(string moduleName, NativeInterface @interface, CompilerOptions options = null)
 {
     if (stubbedModules.ContainsKey(moduleName))
     {
         throw new AzureKinectStubGeneratorException("Module already stubbed");
     }
     else
     {
         StubbedModule m = new StubbedModule(moduleName, @interface, options);
         stubbedModules[moduleName] = m;
         return(m);
     }
 }