A function-definition is not allowed here before '{'

前端 未结 4 883
悲&欢浪女
悲&欢浪女 2020-12-19 17:11

i am getting a REALLY annoying error. i literally looked everywhere for it! i even went back and changed all of my

if (case)
    // to-do
<
4条回答
  •  佛祖请我去吃肉
    2020-12-19 17:39

        image_buffer_ = NULL; // just set it to null if it doesn't :\
    }
    

    Here's a hint: what do you think the escape character \ does to the newline at the end of that line?

    Yes, that's right, it escapes it, effectively bringing the closing brace on the next line into the comment.

    Hence, you're missing a closing brace.

    Maybe you should keep your emotions out of the code :-)

提交回复
热议问题