Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #warning This is dirty code...
- #error Fix this before everything explodes!
- PutTheUpdateCodeHere();
- #error finish this
- try
- {
- //do stuff
- return true;
- }
- catch // no idea how to prevent an exception here at the moment, this make it work for now...
- {
- if (DateTime.Today > new DateTime(2007, 2, 7))
- throw new InvalidOperationException("fix me already!! no catching exceptions like this!");
- return false;
- }
- // TODO: <explanation>
- // FIXME: <explanation>
- //TODO: Finish this
- class ToDo_helper
- {
- public:
- ToDo_helper(const std::string& msg, const char* file, int line)
- {
- std::string header(79, '*');
- Log(LOG_WARNING) << header << 'n'
- << " TO DO:n"
- << " Task: " << msg << 'n'
- << " File: " << file << 'n'
- << " Line: " << line << 'n'
- << header;
- }
- };
- #define TODO_HELPER_2(X, file, line)
- static Error::ToDo_helper tdh##line(X, file, line)
- #define TODO_HELPER_1(X, file, line) TODO_HELPER_2(X, file, line)
- #define ToDo(X) TODO_HELPER_1(X, __FILE__, __LINE__)
- void some_unfinished_business() {
- ToDo("Take care of unfinished business");
- }
- // REVIEW - RP - Is this the best way to achieve x? Could we use algorithm y?
- // REFACTOR - should pull this method up and remove near-dupe code in XYZ.cs
Add Comment
Please, Sign In to add comment