openframeworks / openframeworks/openFrameworks
Feature : OF_FUNC_NAME
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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