protected static extern void mupDefineFun2(IntPtr a_parser, string name, Fun2Delegate fun, int optimize);
 protected static extern void mupDefineOprt(IntPtr a_pParser, 
                                             string name, 
                                             Fun2Delegate fun, 
                                             int precedence, 
                                             int optimize);
 public void DefineFun(string name, Fun2Delegate function, bool bAllowOptimization)
 {
     m_funDelegates.Add(function);
     mupDefineFun2(m_parser, name, function, (bAllowOptimization) ? 1 : 0);
 }
 public void DefineOprt(string name, Fun2Delegate function, int precedence)
 {
     m_binOprtDelegates.Add(function);
     mupDefineOprt(m_parser, name, function, precedence, 0);
 }
Example #5
0
 protected static extern void mecDefineOprt(IntPtr a_pParser,
                                            string name,
                                            Fun2Delegate fun,
                                            int precedence,
                                            int optimize);
Example #6
0
 protected static extern void mecDefineFun2(IntPtr a_parser, string name, Fun2Delegate fun, int optimize);
Example #7
0
 public void DefineOprt(string name, Fun2Delegate function, int precedence)
 {
     m_binOprtDelegates.Add(function);
     mecDefineOprt(m_parser, name, function, precedence, 0);
 }
Example #8
0
 public void DefineFun(string name, Fun2Delegate function, bool bAllowOptimization)
 {
     m_funDelegates.Add(function);
     mecDefineFun2(m_parser, name, function, (bAllowOptimization) ? 1 : 0);
 }
Example #9
0
 public void DefineFun(string name, Fun2Delegate function)
 {
     m_funDelegates.Add(function);
     mupDefineFun2(m_parser, name, function, 0);
 }