Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6357697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:13:06+00:00 2026-05-24T23:13:06+00:00

I came across some standalone code without headers. I believe it to be straight

  • 0

I came across some standalone code without headers. I believe it to be straight C/C++, but am not sure. If so, what does the “CLASS” in the following mean? I know it’s not a class declaration or definition. Is this a method of a class named “CLASS”?

void CLASS functionName(){
  //
  //
  //
}

I’m used to seeing <returnType> <functionName>() {...}, but not the above. Am I forgetting something? (Pardon me, as I’ve been in JS and Objective-C lately.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:13:07+00:00Added an answer on May 24, 2026 at 11:13 pm

    Although it’s not common AFAIK, it could be that CLASS is a macro as below. Since its name is CLASS, I would say it’s more likely that it’s a macro for a class or namespace.

    1. Class Name

    class A
    {
       void functionName();
    };
    
    #define CLASS A::
    
    void CLASS functionName()
    {}
    

    2. Namespace

    namespace A
    {
       void functionName();
    };
    
    #define CLASS A::
    
    void CLASS functionName()
    {}
    

    3. Calling Convertion

    // or __cdecl, etc.
    define CLASS __stdcall
    

    4. Others

    There could be others (e.g., a macro for a pointer) which are syntactically correct, but they’re less likely in your case. Or it could simply be a comment, as Hostile points out below.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across some Java code that has a method containing the following: static
I came across some C code where the author uses the following idiom all
I came across some code that boils down to the following: enum BAR {
I came across some Java code that had the following structure: public MyParameterizedFunction(String param1,
I came across some code with a line looking like: fprintf(fd, %4.8f, ptr->myFlt); Not
I came across some interesting code in java.lang.Class#newInstance0: // Run constructor try { return
I just came across some code which declares a struct within a C++ class
I came across some code containing the following: struct ABC { unsigned long array[MAX];
I came across some javascript code I don't understand: what does a < 5
I came across some legacy code that contains a function like this: LPCTSTR returnString()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.