openframeworks / openframeworks/openFrameworks

Feature : OF_FUNC_NAME

Open
#1,996 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core feature section-internals
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

something like:

#ifndef __func__ //(maybe more platform-safe)
#define OF_FUNC_NAME __FUNCTION__
#else
#define OF_FUNC_NAME __func__
#endif

in ofConstants.h

basically so people can get the current function name for errors, etc in a platform agnostic way.

elliot

(Edit : OF_FUNC became OF_FUNC_NAME)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in ofConstants.h and inspect existing platform-related definitions. Define the platform-agnostic OF_FUNC_NAME macro using the available function-name mechanism, then verify that it can be used consistently for errors across the supported platforms. Done means callers can obtain the current function name through OF_FUNC_NAME without platform-specific code.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
developer-experience
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.