Next: , Previous: , Up: AT commands   [Contents][Index]


5.9 Special left brace

The command ‘@{’ is useful in C/C++ programming to beautify some of the pretty-printing. It translates into a left brace, but also suppresses the automatic insertion of newlines into the subsequent function body or block. This is desirable for very short functions, such as simple constructors in C++. For example,

class C
{
private:
        int i;

public:
        C(int i0) @{i = i0;}
}   

Here the function will be typeset as

C(int i0)
  { i = i0; }

rather than the default

C(int i0)
  {
  i = i0;
  }