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 5942371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:14:38+00:00 2026-05-22T16:14:38+00:00

I know the following 3 parts #define : #define PI 3.4 which mean it

  • 0

I know the following 3 parts #define:

#define PI 3.4

which mean it will replace PI with 3.4.

But that’s the meaning of 2 parts #define like this:

#define something

Will it replace something with null/empty string?

The following is the code example, I searched the file, only list the related lines

  D:\mariadb\storage\pbxt\src\cache_xt.cc (23 hits)  
    Line 172: #ifdef xtPublic  
    Line 173: #undef xtPublic  
    Line 188: #define xtPublic  
    Line 325: xtPublic XTIndHandlePtr xt_ind_get_handle(..)  
    Line 378: xtPublic void xt_ind_release_handle(XTIndHandlePtr..)  
    Line 516: xtPublic xtBool xt_ind_copy_on_write(XTIndReferencePtr iref)  
    Line 597: xtPublic void xt_ind_lock_handle(XTIndHandlePtr handle) 
  • 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-22T16:14:39+00:00Added an answer on May 22, 2026 at 4:14 pm

    Yes it meaning replace something with an empty string. But the important thing is now something is recognized by the preprocessor that it is “defined”, so

    #ifdef something
    

    will pass after that #define (Line 172).

    Also, it is common to use it for configurational or vendor-specific attributes (Line 325, …), like

    #if MSVC
    #define EXPORT __declspec(dllexport)
    #else
    #define EXPORT
    #endif
    
    EXPORT void f();
    // expand to '__declspec(dllexport) void f()' in MSVC
    // expand to 'void f()' in other compilers
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that the following works but it is not that readable, is there
I would like to know following: I added the folder Graphics into my project
I know that the following code should show and hide a tiny circular progress
I'm just getting myself to familiarize with GIS but i like to know before
I'm trying to read in an xml file which looks like this <?xml version=1.0
I've got a one line method that resolves a null string to string.Empty which
I use EFCodefirst. Most of you know, but the following code is part of
The scenario is the following: Lets say I have this application App that depends
I'm getting the following from a third party library (one example): @%SystemRoot%\SomePath\SomeFile.Dll,-203 I know
I know following is the way to use unicode in C# string unicodeString =

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.