Using Goto function across different functions

前端 未结 4 2095
心在旅途
心在旅途 2020-12-18 20:58

How can I use goto function across different functions .For ex ,

    main()
    {
      ....
      REACH:
      ......
    }

    void function()
    {
             


        
4条回答
  •  自闭症患者
    2020-12-18 21:29

    For gcc:

    #include 
    
    void func(void* target){
        std::cout << "func" <

    Note that this can be an undefined behavior

提交回复
热议问题