I usually write a macro do to the same. #define DI() {while(GIE)GIE=0;} Then to call it you just put DI() in the code. You can make more complex ones too: #define MoreComplex(x) \ {int b;\ for (b = 0; bHello, > >Can someone help me out with doing inline function in Hi-Tech C. I've read >through the manual and it appears one is suppose to use #pragma inline, but >this gives me a compiler error. Using just inline (which in Ansi C I >believe) also gives me an error. Am I missing something here? > >Donovan > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. > > ------------------------------------------------------------------- Race Boats - andy@RC-Hydros.com http://www.RC-Hydros.com Airplanes - andy@FlyingHobbies.com http://www.FlyingHobbies.com Electronics - andy@MontanaDesign.com http://www.MontanaDesign.com ------------------------------------------------------------------- -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.