This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

is there inline funtion in keil c51

i want to use inline function like in
c++ language.
how to do in keil c or it's not support?
use #define to simulate ?

Parents
  • Thanks for your answer.
    My point is readable code. for example:

    switch x {
    case 1: f1();
    case 2: f2();
    .....

    it's more clear than not using function.

    but i'm afraid to call too much level,
    the stack memory overflow. especially in
    interrupt function.

    Maybe I should try another programming style.

Reply
  • Thanks for your answer.
    My point is readable code. for example:

    switch x {
    case 1: f1();
    case 2: f2();
    .....

    it's more clear than not using function.

    but i'm afraid to call too much level,
    the stack memory overflow. especially in
    interrupt function.

    Maybe I should try another programming style.

Children
No data