private IntPtr SassFunctionCallback(IntPtr sassValues, IntPtr callback, IntPtr compiler) { ISassType[] convertedValues = TypeFactory.GetSassArguments(sassValues); IntPtr signaturePtr = sass_function_get_signature(callback); string signature = PtrToString(signaturePtr); IntPtr cookiePtr = sass_function_get_cookie(callback); CustomFunctionDelegate customFunctionCallback = _functionsCallbackDictionary[cookiePtr]; ISassType returnedValue = customFunctionCallback(_sassOptions, signature, convertedValues); var ptr = TypeFactory.GetRawPointer(returnedValue, ValidityEvent); ValidityEvent.Invoke(); return(ptr); }
public SassResult CompileContext() { ValidityEvent?.Invoke(); return(CompileInternalContext()); }