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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:38:56+00:00 2026-06-17T15:38:56+00:00

I am doing a project and use projects from years past to help me

  • 0

I am doing a project and use projects from years past to help me get ideas on how to do certain things. Note that I am not copying mindlessly but there is a lot of stuff that isn’t in the book.
Anyhow here is the macro that I don’t understand:

#define PREPAREENTRY(numIVT,oldINT) \
    void interrupt int##numIVT(...){\
            IVTEntry::entries[##numIVT]->signalAll();\
            if (oldINT) IVTEntry::entries[##numIVT]->callOld();}\
    IVTEntry entry##numIVT(##numIVT,int##numIVT); 
#endif

I am not completely sure, but I think I got the hang of most of it. So, PREPAREENTRY gets two values, numIVT (number in IV Table) and OldNT (old interrupt).

Then it makes a interrupt function whose name is the number numIVT, which I can later set as a interrupt function for a certain interrupt, or what happens when that interrupt appears.

The new interrupt function calls signalAll() of a certain object from an array of objects depending on numIVT. Then it checks if it should call the old interrupt function and calls it or not.

That’s the end of the new interrupt function.

But what does the line before #endif do? I’ve been looking all over project and can’t find the answer. Before looking at this project during brainstorming I thought of something similar to this but without the last line.

If someone could tell me if I am right or wrong about the parts I think I got hang off and if someone could tell me what this mysterious line does it would be greatly appreciated.

  • 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-06-17T15:38:57+00:00Added an answer on June 17, 2026 at 3:38 pm

    Lets assume numIVT=1. That last part of the macro would be expanded to:

    IVTEntry entry1(1, int1); 
    

    That means you’re defining an object of type IVTEntry, and using 1 and int1(the function declared in the same macro) as its constructor arguments.

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

Sidebar

Related Questions

I'm doing a project that use image processing techniques to identify different objects and
I am doing a project which involves a good use of core data. I
I am doing a project and need to use the facebook API as user
Hi I am doing my project in PHP.In this when the use r doesnt
I am doing a project, where I am going to use Entity Framework 4.1.
I'm working on a project where i have to use dojo (i'm doing a
I'm doing project on object detection using javacv in that I went through couple
In one of my Django projects that use MySQL as the database, I need
I'm doing a small project to help my work go by faster. I currently
We have common CSS styling in our organisation that most of the projects use.

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.